From: Eshel Yaron Date: Fri, 14 Apr 2023 08:34:35 +0000 (+0300) Subject: Pulse line after switching windows X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2ea3902723b9895bdb7697c8ca7d629bc82b4863;p=dotfiles.git Pulse line after switching windows --- 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)