From 57b3ef8ac5644ab6fbcdbdf43e64c3ec266c148a Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 11 Dec 2025 21:35:55 +0100 Subject: emacs: Add ‘highlighter’ bindings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/emacs/modules/mm-theme.el | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to '.config/emacs/modules') diff --git a/.config/emacs/modules/mm-theme.el b/.config/emacs/modules/mm-theme.el index 0c4333f..cde214a 100644 --- a/.config/emacs/modules/mm-theme.el +++ b/.config/emacs/modules/mm-theme.el @@ -165,6 +165,16 @@ See also the `mm-theme-background-opacity' variable." :bind (("C-c h l" . pulsar-highlight-dwim))) + +;;; In-buffer highlighting + +(require 'hi-lock) ; For extra face definitions +(use-package highlighter + :bind (("C-c h m" . #'highlighter-mark) + ("C-c h u" . #'highlighter-unmark) + ("C-c h U" . #'highlighter-unmark-buffer)) + :commands (highlighter-mark highlighter-unmark highlighter-unmark-buffer)) + ;;; Add Padding @@ -233,4 +243,4 @@ See also the `mm-theme-background-opacity' variable." (highlight-indent-guides-auto-even-face-perc 30) (highlight-indent-guides-auto-odd-face-perc 0))) -(provide 'mm-theme) \ No newline at end of file +(provide 'mm-theme) -- cgit v1.2.3