 
 ;; Use icons in dired
 (use-package all-the-icons-dired
-  :if (window-system)
+  :if (display-graphic-p)
   :after all-the-icons
   :config (add-hook 'dired-mode-hook 'all-the-icons-dired-mode))
 

  :if (memq window-system '(mac ns x))
  :config
  (exec-path-from-shell-initialize)
  (exec-path-from-shell-copy-env "GOPATH"))

;; Replace the major mode name with its icon and move the buffer name from the
;; mode line to the header line
(use-package all-the-icons
  :if (window-system)
  :init
  (defun move-buffer-id-to-header-line ()
    (when (window-header-line-height)

  (bind-keys :map yas-minor-mode-map
             ("TAB"   . nil)
             ("<tab>" . nil)
             ("C-c i" . yas-maybe-expand)))

;; Auto-completion
(use-package company
