summary refs log tree commit diff
path: root/emacs.d/core/core-editor.el
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2016-02-13 10:00:51 -0800
committerFranck Cuny <franckcuny@gmail.com>2016-02-13 10:00:51 -0800
commit24fbf94812d26d936eac12f65dd7101eec6a462d (patch)
tree8442a4acf17dd3a973cfda17a63e76a16a0b03de /emacs.d/core/core-editor.el
parentConvert the README to org-mode. (diff)
downloademacs.d-24fbf94812d26d936eac12f65dd7101eec6a462d.tar.gz
[emacs] Load `exec-path-from-shell` only on OS X
Diffstat (limited to '')
-rw-r--r--emacs.d/core/core-editor.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/emacs.d/core/core-editor.el b/emacs.d/core/core-editor.el
index c8740db..5892471 100644
--- a/emacs.d/core/core-editor.el
+++ b/emacs.d/core/core-editor.el
@@ -11,11 +11,12 @@
   :config
   (setq counsel-find-file-at-point t))
 
-(use-package exec-path-from-shell
-  :ensure t
-  :config
-  (exec-path-from-shell-initialize)
-  (exec-path-from-shell-copy-envs '("TMPDIR" "GOPATH")))
+(when (memq window-system '(mac ns x))
+  (use-package exec-path-from-shell
+    :ensure t
+    :config
+    (exec-path-from-shell-initialize)
+    (exec-path-from-shell-copy-envs '("TMPDIR"))))
 
 (use-package ag
   :ensure t