]> git.eshelyaron.com Git - dotfiles.git/commitdiff
Pulse line on window change
authorEshel Yaron <me@eshelyaron.com>
Tue, 12 Jul 2022 16:49:19 +0000 (19:49 +0300)
committerEshel Yaron <me@eshelyaron.com>
Tue, 12 Jul 2022 16:49:19 +0000 (19:49 +0300)
.emacs.d/esy.org

index dd5e981d24f5aec7fa8122c36059fd456597ef46..ab246e1f42205cc238e14062e1d1fa5f745a04fc 100644 (file)
@@ -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)