From 3b94bafb3ad6f9c0e91a67e99f07bd97951954a4 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 26 Mar 2018 06:41:33 -0400 Subject: [PATCH] tools/nav-flash: refactor & reduce false positive jumps --- modules/ui/nav-flash/config.el | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/ui/nav-flash/config.el b/modules/ui/nav-flash/config.el index bfc7743d9..1fe7f2d31 100644 --- a/modules/ui/nav-flash/config.el +++ b/modules/ui/nav-flash/config.el @@ -3,18 +3,18 @@ (def-package! nav-flash :commands nav-flash-show :init - ;; NOTE In :feature jump `recenter' is hooked to a bunch of jumping commands, - ;; which will trigger nav-flash. - (add-hook 'doom-after-switch-window-hook #'+nav-flash/blink-cursor) - (advice-add #'recenter :around #'+nav-flash*blink-cursor-maybe) + ;; NOTE In :feature lookup `recenter' is hooked to a bunch of jumping + ;; commands, which will trigger nav-flash. + (add-hook! + '(doom-after-switch-window-hook + imenu-after-jump-hook evil-jumps-post-jump-hook + counsel-grep-post-action-hook dumb-jump-after-jump-hook) + #'+nav-flash/blink-cursor) (advice-add #'save-place-find-file-hook :after #'+nav-flash/blink-cursor) (after! evil - (advice-add #'evil--jumps-jump :after #'+nav-flash/blink-cursor) - (advice-add #'evil-window-top :after #'+nav-flash/blink-cursor) (advice-add #'evil-window-middle :after #'+nav-flash/blink-cursor) (advice-add #'evil-window-bottom :after #'+nav-flash/blink-cursor))) -