2017-06-08 11:47:56 +02:00
|
|
|
;;; ui/nav-flash/config.el -*- lexical-binding: t; -*-
|
2017-06-04 16:45:14 +02:00
|
|
|
|
2018-07-24 20:04:03 +02:00
|
|
|
(defvar +nav-flash-exclude-commands
|
|
|
|
'(mouse-set-point evil-mouse-drag-region
|
|
|
|
+org/dwim-at-point org-find-file org-find-file-at-mouse)
|
|
|
|
"A list of commands that should not trigger nav-flash.")
|
|
|
|
|
2017-06-04 16:45:14 +02:00
|
|
|
(def-package! nav-flash
|
2018-05-25 00:46:11 +02:00
|
|
|
:defer t
|
2017-06-04 16:45:14 +02:00
|
|
|
:init
|
2018-03-26 06:41:33 -04:00
|
|
|
;; NOTE In :feature lookup `recenter' is hooked to a bunch of jumping
|
|
|
|
;; commands, which will trigger nav-flash.
|
|
|
|
(add-hook!
|
2019-03-07 00:26:51 -05:00
|
|
|
'(doom-switch-window-hook
|
2018-03-26 06:41:33 -04:00
|
|
|
imenu-after-jump-hook evil-jumps-post-jump-hook
|
|
|
|
counsel-grep-post-action-hook dumb-jump-after-jump-hook)
|
2018-07-24 20:04:03 +02:00
|
|
|
#'+nav-flash|blink-cursor-maybe)
|
|
|
|
|
|
|
|
;; `org'
|
|
|
|
(add-hook 'org-follow-link-hook #'+nav-flash|delayed-blink-cursor)
|
2017-06-04 16:45:14 +02:00
|
|
|
|
2018-05-18 01:21:09 +02:00
|
|
|
;; `saveplace'
|
2018-07-24 20:04:03 +02:00
|
|
|
(advice-add #'save-place-find-file-hook :after #'+nav-flash*blink-cursor)
|
2018-02-02 19:51:08 -05:00
|
|
|
|
2018-05-18 01:21:09 +02:00
|
|
|
;; `evil'
|
2018-07-24 20:04:03 +02:00
|
|
|
(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))
|
2017-06-04 16:45:14 +02:00
|
|
|
|