0

I'm using doom emacs, which has in-built configuration to search for text in buffers with key binding / (evil-ex-search-forward). Once I search, I can hit RET and use either n or S-n to cycle through the matches.

All the matches are highlighted in a single color based on the theme. Is it possible to change the color of the current match as I cycle through them?

I tried below config, but it changes all the matches

(custom-set-faces! ;; 1. Customize the Persistent Search Highlights (all matches) ;; This is the face you identified. `(evil-ex-lazy-highlight :background "#2F4F4F" :foreground nil) ; Dark Slate Gray, or your preference ;; 2. Customize the *Current* Match Highlight (used by Anzu) ;; This is the distinct highlight for the match your cursor is on. `(isearch-match :background "#FF00FF" :foreground "#FFFFFF" :weight bold) ; Bright Magenta, for high contrast ) 

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.