Advise go-import-around with normal go command

This commit is contained in:
Ivan Malison 2016-04-05 12:22:35 -07:00
parent 3b1db347a9
commit 45c7bdc7b7

View File

@ -2327,12 +2327,12 @@ items follow a style that is consistent with other prog-modes."
(set (make-local-variable 'company-backends) '(company-go))))
:config
(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
(lambda ()
(with-no-warnings
(ring-insert find-tag-marker-ring (point-marker)))))
(advice-add 'go-import-add :around 'imalison:advise-normal-go-command)
(use-package company-go
:config (setq company-go-show-annotation t))
(use-package go-projectile)