Don't call exec-path-from-shell function on Windows

This commit is contained in:
Syohei YOSHIDA 2016-01-13 10:19:07 +09:00 committed by syl20bnr
parent 4265e0e35c
commit aec2437071

View file

@ -11,9 +11,10 @@
(spacemacs/add-flycheck-hook 'go-mode-hook))
(defun go/init-go-mode()
(dolist (var '("GOPATH" "GO15VENDOREXPERIMENT"))
(unless (getenv var)
(exec-path-from-shell-copy-env var)))
(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
:defer t