mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
fix(lang): ensure golang setup works with goenv
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
(exec-path-from-shell-variables '("PATH"
|
||||
"MANPATH"
|
||||
"TMPDIR"
|
||||
"GOPATH"
|
||||
"KUBECONFIG"))
|
||||
(exec-path-from-shell-arguments '("-l"))
|
||||
(exec-path-from-shell-check-startup-files nil)
|
||||
|
||||
@@ -50,10 +50,10 @@
|
||||
(subword-mode +1))
|
||||
|
||||
:config
|
||||
(message "loading go-mode")
|
||||
|
||||
(when (memq window-system '(mac ns))
|
||||
(when (not (getenv "GOPATH"))
|
||||
(exec-path-from-shell-copy-env "GOPATH"))
|
||||
(when (not (getenv "GOENV_GOPATH_PREFIX"))
|
||||
(exec-path-from-shell-copy-env "GOENV_GOPATH_PREFIX"))
|
||||
|
||||
(define-key 'help-command (kbd "G") 'godoc)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user