]> git.eshelyaron.com Git - dotfiles.git/commitdiff
Enable global-hl-line-mode
authorEshel Yaron <eshel@areionsec.com>
Fri, 27 May 2022 20:11:50 +0000 (23:11 +0300)
committerEshel Yaron <eshel@areionsec.com>
Fri, 27 May 2022 20:11:50 +0000 (23:11 +0300)
.emacs.d/esy.org

index 5273de1519b655792e0793196576a068c4b4e31a..ee74c4d8224a8ecc446c46dc0ac0378e4c96dde3 100644 (file)
@@ -298,6 +298,7 @@ For a list of available frame parameters, see [[info:elisp#Frame Parameters][eli
     (add-to-list 'lin-mode-hooks 'gnus-group-mode-hook)
     (add-to-list 'lin-mode-hooks 'gnus-server-mode-hook)
     (global-diff-hl-mode)
+    (global-hl-line-mode)
     (lin-global-mode 1)
     (transient-mark-mode)
     (show-paren-mode))
@@ -801,6 +802,19 @@ refiling directly into deeper headings as well.
         (kill-region (point) end))))
 #+end_src
 
+** Pulse current line                                                  :cmd:
+:PROPERTIES:
+:CUSTOM_ID: pulse-line
+:END:
+
+#+begin_src emacs-lisp
+  (defun esy/pulse-line ()
+    "Pulse current line."
+    (interactive)
+    (pulse-momentary-highlight-one-line))
+#+end_src
+
+
 ** Misc. keybindings
 :PROPERTIES:
 :CUSTOM_ID: misc-keybindings
@@ -839,6 +853,7 @@ refiling directly into deeper headings as well.
     (global-set-key (kbd "C-.") #'embark-act)
     (global-set-key (kbd "C-;") #'avy-goto-char-timer)
     (global-set-key (kbd "C-s-f") #'toggle-frame-fullscreen)
+    (global-set-key (kbd "C-s-l") #'esy/pulse-line)
     (global-set-key [remap just-one-space] #'cycle-spacing))
 
   (add-hook 'after-init-hook #'esy/customize-global-keymap)