From 2ea3902723b9895bdb7697c8ca7d629bc82b4863 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Fri, 14 Apr 2023 11:34:35 +0300 Subject: [PATCH] Pulse line after switching windows --- .emacs.d/init.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index cb118b4..1ef75d9 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -493,6 +493,15 @@ (basic-save-buffer)) (executable-make-buffer-file-executable-if-script-p)))) +(esy/init-step pulse-on-window-selection-change + "Pulse the line around point after switching windows." + + (defun esy/pulse-on-window-selection-change (&rest _) + (pulse-momentary-highlight-one-line)) + + (add-hook 'window-selection-change-functions + #'esy/pulse-on-window-selection-change)) + (esy/init-step startup-message "Override the default startup message." (define-advice startup-echo-area-message (:override () report-init-time) -- 2.39.2