replace pulse with global-hi-line-mode

This commit is contained in:
zedhugh committed 2025-03-29 05:36:18 +08:00
1 parent af323ad6d8
commit 5c12415f9e
1 file changed
+5 -2
+5 -2
View File
@@ -17,12 +17,15 @@
(with-eval-after-load 'pulse
(setq pulse-delay 0.04))
(let ((prefer-hl-line-mode-than-pulse t))
(if prefer-hl-line-mode-than-pulse
(global-hl-line-mode 1)
(progn
(dolist (command '(scroll-up
scroll-down
recenter))
(advice-add command :after #'creature/pulse-line))
(add-to-list 'window-selection-change-functions #'creature/pulse-line)
(add-to-list 'window-selection-change-functions #'creature/pulse-line))))
;; address style
(add-hook 'erc-mode-hook #'goto-address-mode)