diff --git a/lisp/init-highlight.el b/lisp/init-highlight.el index 73b34f1e3..7e7f80604 100644 --- a/lisp/init-highlight.el +++ b/lisp/init-highlight.el @@ -114,7 +114,8 @@ FACE defaults to inheriting from default and highlight." (symbol-overlay-face-6 ((t (:inherit nerd-icons-orange :background unspecified :foreground unspecified :inverse-video t)))) (symbol-overlay-face-7 ((t (:inherit nerd-icons-green :background unspecified :foreground unspecified :inverse-video t)))) (symbol-overlay-face-8 ((t (:inherit nerd-icons-cyan :background unspecified :foreground unspecified :inverse-video t)))) - :bind (("M-i" . symbol-overlay-put) + :bind (:map symbol-overlay-mode-map + ("M-i" . symbol-overlay-put) ("M-n" . symbol-overlay-jump-next) ("M-p" . symbol-overlay-jump-prev) ("M-N" . symbol-overlay-switch-forward) @@ -141,6 +142,14 @@ FACE defaults to inheriting from default and highlight." (symbol-overlay-mode 1))) (advice-add #'deactivate-mark :after #'turn-on-symbol-overlay))) +;; Mark occurrences of current region (selection) +(use-package region-occurrences-highlighter + :diminish + :bind (:map region-occurrences-highlighter-nav-mode-map + ("M-n" . region-occurrences-highlighter-next) + ("M-p" . region-occurrences-highlighter-prev)) + :hook (after-init . global-region-occurrences-highlighter-mode)) + ;; Highlight indentions (use-package indent-bars :custom