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
|
2019-04-21 19:59:44 -04:00
|
|
|
;; NOTE In :tools lookup `recenter' is hooked to a bunch of jumping
|
2018-03-26 06:41:33 -04:00
|
|
|
;; commands, which will trigger nav-flash.
|
|
|
|
(add-hook!
|
2019-05-21 03:42:12 -04:00
|
|
|
'(imenu-after-jump-hook better-jumper-post-jump-hook
|
2018-03-26 06:41:33 -04:00
|
|
|
counsel-grep-post-action-hook dumb-jump-after-jump-hook)
|
2018-07-24 20:04:03 +02:00
|
|
|
#'+nav-flash|blink-cursor-maybe)
|
|
|
|
|
2019-05-22 17:11:24 -04:00
|
|
|
(add-hook 'doom-switch-window-hook #'+nav-flash|blink-cursor-maybe)
|
2019-05-21 03:42:12 -04:00
|
|
|
|
2018-07-24 20:04:03 +02:00
|
|
|
;; `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
|
|
|
|