Don't call exec-path-from-shell function on Windows
This commit is contained in:
parent
4265e0e35c
commit
aec2437071
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue