From e623156b44a2994c121010cc83344b633fc24b59 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 13 Feb 2016 16:00:27 -0800 Subject: [emacs] Import golang variables for OS X. --- emacs.d/modes/lang-go.el | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit 1.4.1