From c4c8349c5526ff4a2e699676525e29008b083844 Mon Sep 17 00:00:00 2001 From: noa@gaiwan.org Date: Thu, 13 Jun 2024 15:36:19 +0000 Subject: Replace beacon.el with built in pulse --- emacs/init.el | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'emacs') diff --git a/emacs/init.el b/emacs/init.el index 2dc275a..e800c9b 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -99,10 +99,13 @@ ) ) -(use-package beacon - :ensure t - :delight - :custom (beacon-mode t)) +(defun pulse-line (&rest _) + "Pulse the current line." + (pulse-momentary-highlight-one-line (point))) + +(dolist (command '(scroll-up-command scroll-down-command recenter-top-bottom other-window)) + (advice-add command :after #'pulse-line)) + (use-package jabber :ensure t -- cgit 1.4.1-2-gfad0