From ed05e4c088df608dce088d1dc8ab10b230649ca0 Mon Sep 17 00:00:00 2001 From: gpanago Date: Fri, 6 Sep 2024 17:30:27 -0400 Subject: [PATCH] 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. --- modules/ui/nav-flash/config.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/ui/nav-flash/config.el b/modules/ui/nav-flash/config.el index 231a75a0f..2a83a8b62 100644 --- a/modules/ui/nav-flash/config.el +++ b/modules/ui/nav-flash/config.el @@ -31,6 +31,10 @@ ;; `org' (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' (advice-add #'save-place-find-file-hook :after #'+nav-flash-blink-cursor-a)