From 6a53ac30e82fec523ec583264e804b48d4fcf8b6 Mon Sep 17 00:00:00 2001 From: Miciah Masters Date: Mon, 20 Jul 2020 18:32:24 -0400 Subject: [PATCH] Add integration with go-mode * evil-integration.el: When go-mode is loaded, mark godef-jump as a jump command so that evil-jump-backward works properly with it. --- evil-integration.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/evil-integration.el b/evil-integration.el index 01bd2472..7e244be2 100644 --- a/evil-integration.el +++ b/evil-integration.el @@ -523,6 +523,10 @@ Based on `evil-enclose-ace-jump-for-motion'." (eval-after-load 'abbrev '(add-hook 'evil-insert-state-exit-hook 'evil-maybe-expand-abbrev)) +;;; go-mode +(eval-after-load 'go-mode + '(evil-set-command-property 'godef-jump :jump t)) + ;;; ElDoc (eval-after-load 'eldoc '(when (fboundp 'eldoc-add-command-completions)