From 25ebc8e20cca91fef1e8b03f37c43695e5da7908 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Tue, 12 Jul 2022 19:49:19 +0300 Subject: [PATCH] Pulse line on window change --- .emacs.d/esy.org | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.emacs.d/esy.org b/.emacs.d/esy.org index dd5e981..ab246e1 100644 --- a/.emacs.d/esy.org +++ b/.emacs.d/esy.org @@ -771,10 +771,12 @@ refiling directly into deeper headings as well. :END: #+begin_src emacs-lisp - (defun esy/pulse-line () + (defun esy/pulse-line (&optional _) "Pulse current line." (interactive) (pulse-momentary-highlight-one-line)) + + (add-to-list 'window-state-change-functions #'esy/pulse-line) #+end_src ** Misc. keybindings @@ -836,6 +838,7 @@ refiling directly into deeper headings as well. (keymap-set ctl-x-map "l" #'org-store-link) (keymap-set ctl-x-map "c" #'org-capture) (keymap-set ctl-x-map "o" #'ace-window) + (keymap-set ctl-x-map "O" #'other-window) (keymap-set ctl-x-map "w" #'esy/eww) (keymap-set ctl-x-map "V" #'vertalen-at-point) (keymap-set ctl-x-map "G" #'gnus) -- 2.39.5