From 9796948202cb322483cda2a33dbeefcb343600f8 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Thu, 12 Nov 2026 20:36:44 +0100 Subject: [PATCH] disable ho-lock-map --- init.el | 1 + lisp/init-highlight.el | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 lisp/init-highlight.el diff --git a/init.el b/init.el index 3108f09..d1fbc8d 100644 --- a/init.el +++ b/init.el @@ -174,6 +174,7 @@ (require 'init-printing) (require 'init-smarter-than-emacs) (require 'init-dabbrev) +(require 'init-highlight) (require 'init-marginalia) (require 'init-avy) (require 'init-ui) diff --git a/lisp/init-highlight.el b/lisp/init-highlight.el new file mode 100644 index 0000000..4dd31d3 --- /dev/null +++ b/lisp/init-highlight.el @@ -0,0 +1,15 @@ +;; -*- lexical-binding: nil; -*- + + +(use-package hi-lock + :ensure nil + + :config + + ;; This disables the hi-lock-mode keymap, which conflicts with our + ;; window hydra (C-x w) and we don't need it anyway + (setcdr hi-lock-map (cdr (make-keymap))) + (set-keymap-parent hi-lock-map special-mode-map)) + + +(provide 'init-highlight)