summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2016-02-13 16:00:27 -0800
committerFranck Cuny <franckcuny@gmail.com>2016-02-13 16:00:27 -0800
commite623156b44a2994c121010cc83344b633fc24b59 (patch)
treef3afc82dd6a95da0afb01c5d1f4f591267210ff1
parent[emacs] Add a few more packages for git. (diff)
downloademacs.d-e623156b44a2994c121010cc83344b633fc24b59.tar.gz
[emacs] Import golang variables for OS X.
Diffstat (limited to '')
-rw-r--r--emacs.d/modes/lang-go.el5
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