summary refs log tree commit diff
diff options
context:
space:
mode:
authornoa@gaiwan.org2024-06-13 15:36:19 +0000
committernoa@gaiwan.org2024-06-13 15:36:19 +0000
commitc4c8349c5526ff4a2e699676525e29008b083844 (patch)
treedb977fe46379bdce9fe63d49f3d93756d69b72d6
parente3526f85f186b7feabecbfb85add5fd396002725 (diff)
Replace beacon.el with built in pulse
-rw-r--r--emacs/init.el11
1 files changed, 7 insertions, 4 deletions
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