summaryrefslogtreecommitdiff
path: root/.config/emacs/modules
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2025-12-11 21:35:55 +0100
committerThomas Voss <mail@thomasvoss.com> 2025-12-11 21:35:55 +0100
commit57b3ef8ac5644ab6fbcdbdf43e64c3ec266c148a (patch)
tree39ae238f17ae664432897eee4838431aeeb2e36c /.config/emacs/modules
parent070351c70fd022ffa2aa52dba1d3a0729eaa2961 (diff)
emacs: Add ‘highlighter’ bindingsHEADmaster
Diffstat (limited to '.config/emacs/modules')
-rw-r--r--.config/emacs/modules/mm-theme.el12
1 files changed, 11 insertions, 1 deletions
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
@@ -166,6 +166,16 @@ See also the `mm-theme-background-opacity' variable."
(("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
(use-package spacious-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)