mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
feat(nav-flash): blink on workspace change
Changing workspace is big motion so we should blink the cursor. We can not use `+nav-flash-blink-cursor-maybe-h` as the point is not yet in the correct buffer when the hook is triggered.
This commit is contained in:
@ -31,6 +31,10 @@
|
|||||||
;; `org'
|
;; `org'
|
||||||
(add-hook 'org-follow-link-hook #'+nav-flash-delayed-blink-cursor-h)
|
(add-hook 'org-follow-link-hook #'+nav-flash-delayed-blink-cursor-h)
|
||||||
|
|
||||||
|
;; `persp-mode'
|
||||||
|
(after! persp-mode
|
||||||
|
(add-hook 'persp-activated-functions #'+nav-flash-delayed-blink-cursor-h))
|
||||||
|
|
||||||
;; `saveplace'
|
;; `saveplace'
|
||||||
(advice-add #'save-place-find-file-hook :after #'+nav-flash-blink-cursor-a)
|
(advice-add #'save-place-find-file-hook :after #'+nav-flash-blink-cursor-a)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user