From 6a17ec8c2f4911e1f67fe82ab73e769d4f045c91 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 16 Mar 2016 19:19:08 -0700 Subject: [PATCH] use go-guru instead of godef --- dotfiles/emacs.d/init.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dotfiles/emacs.d/init.el b/dotfiles/emacs.d/init.el index a6b92889..c8d3d788 100644 --- a/dotfiles/emacs.d/init.el +++ b/dotfiles/emacs.d/init.el @@ -2316,7 +2316,10 @@ items follow a style that is consistent with other prog-modes." (set (make-local-variable 'company-backends) '(company-go)))) :config (progn - (bind-key "M-." 'godef-jump go-mode-map) + (advice-add 'go-guru-definition :before + (lambda () + (with-no-warnings + (ring-insert find-tag-marker-ring (point-marker))))) (use-package company-go :config (setq company-go-show-annotation t)) (use-package go-projectile) @@ -2327,7 +2330,7 @@ items follow a style that is consistent with other prog-modes." "guru" "guru.el")) (use-package go-guru :ensure nil) (setq go-test-verbose t) - (bind-key "M-." 'godef-jump go-mode-map) + (bind-key "M-." 'go-guru-definition go-mode-map) (bind-key "M-," 'pop-tag-mark go-mode-map) (imalison:prefix-alternatives imalison:gotest go-test-current-test go-test-current-file)