diff options
author | Franck Cuny <franckcuny@gmail.com> | 2016-02-13 10:00:51 -0800 |
---|---|---|
committer | Franck Cuny <franckcuny@gmail.com> | 2016-02-13 10:00:51 -0800 |
commit | 24fbf94812d26d936eac12f65dd7101eec6a462d (patch) | |
tree | 8442a4acf17dd3a973cfda17a63e76a16a0b03de | |
parent | Convert the README to org-mode. (diff) | |
download | emacs.d-24fbf94812d26d936eac12f65dd7101eec6a462d.tar.gz |
[emacs] Load `exec-path-from-shell` only on OS X
-rw-r--r-- | emacs.d/core/core-editor.el | 11 |
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 |