From 24fbf94812d26d936eac12f65dd7101eec6a462d Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 13 Feb 2016 10:00:51 -0800 Subject: [emacs] Load `exec-path-from-shell` only on OS X --- emacs.d/core/core-editor.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'emacs.d/core/core-editor.el') 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 -- cgit 1.4.1