forked from colonelpanic/dotfiles
set normal go command for guru definition
This commit is contained in:
parent
840e2cedd8
commit
8eb4ac21c3
@ -2315,6 +2315,7 @@ items follow a style that is consistent with other prog-modes."
|
|||||||
"...")))
|
"...")))
|
||||||
(defun go-mode-get-go-path ()
|
(defun go-mode-get-go-path ()
|
||||||
(file-name-as-directory (car (s-split ":" (getenv "GOPATH")))))
|
(file-name-as-directory (car (s-split ":" (getenv "GOPATH")))))
|
||||||
|
(imalison:let-advise-around imalison:advise-normal-go-command (go-command "go"))
|
||||||
(defun imalison:go-mode-hook ()
|
(defun imalison:go-mode-hook ()
|
||||||
(go-eldoc-setup)
|
(go-eldoc-setup)
|
||||||
(bind-key "C-c t" 'imalison:gotest go-mode-map)
|
(bind-key "C-c t" 'imalison:gotest go-mode-map)
|
||||||
@ -2325,6 +2326,8 @@ items follow a style that is consistent with other prog-modes."
|
|||||||
(set (make-local-variable 'company-backends) '(company-go))))
|
(set (make-local-variable 'company-backends) '(company-go))))
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
|
(advice-remove 'imalison:let-advise-around 'go-guru-defintion)
|
||||||
|
(advice-add 'go-guru-definition :around 'imalison:advise-normal-go-command)
|
||||||
(advice-add 'go-guru-definition :before
|
(advice-add 'go-guru-definition :before
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(with-no-warnings
|
(with-no-warnings
|
||||||
|
Loading…
Reference in New Issue
Block a user