From 8f15903799a0aaf740c2f5ae63fe31df0351c000 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Fri, 27 May 2022 23:11:50 +0300 Subject: [PATCH] Enable global-hl-line-mode --- .emacs.d/esy.org | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.emacs.d/esy.org b/.emacs.d/esy.org index 5273de1..ee74c4d 100644 --- a/.emacs.d/esy.org +++ b/.emacs.d/esy.org @@ -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) -- 2.39.2