   :if (memq window-system '(mac ns x))
   :config
   (exec-path-from-shell-initialize)
-  (exec-path-from-shell-copy-env "GOPATH"))
+  (exec-path-from-shell-copy-env "GOPATH")
+  (exec-path-from-shell-copy-env "JAVA_HOME"))
 
 ;; 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)
+  :if (display-graphic-p)
   :init
   (defun move-buffer-id-to-header-line ()
     (when (window-header-line-height)


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


;; -*- lexical-binding: t -*-

;; Disable themes on terminals
(setq custom--inhibit-theme-enable (not (display-graphic-p)))

;; Stop asking me if a theme is safe. The entirety of Emacs is built around
;; evaling arbitrary code...
