Skip to content

Commit

Permalink
feat: highlight selections
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle0128 committed Dec 19, 2024
1 parent 6185b7d commit 212e319
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lisp/init-highlight.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 212e319

Please sign in to comment.