diff options
author | Franck Cuny <franckcuny@gmail.com> | 2016-02-13 16:00:27 -0800 |
---|---|---|
committer | Franck Cuny <franckcuny@gmail.com> | 2016-02-13 16:00:27 -0800 |
commit | e623156b44a2994c121010cc83344b633fc24b59 (patch) | |
tree | f3afc82dd6a95da0afb01c5d1f4f591267210ff1 /emacs.d/modes | |
parent | [emacs] Add a few more packages for git. (diff) | |
download | emacs.d-e623156b44a2994c121010cc83344b633fc24b59.tar.gz |
[emacs] Import golang variables for OS X.
Diffstat (limited to '')
-rw-r--r-- | emacs.d/modes/lang-go.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/emacs.d/modes/lang-go.el b/emacs.d/modes/lang-go.el index 8d81f2c..0b56bd9 100644 --- a/emacs.d/modes/lang-go.el +++ b/emacs.d/modes/lang-go.el @@ -1,3 +1,8 @@ +(when (memq window-system '(mac ns x)) + (dolist (var '("GOPATH" "GO15VENDOREXPERIMENT")) + (unless (getenv var) + (exec-path-from-shell-copy-env var)))) + (use-package go-mode :ensure t :defer t |