Reputation: 303
the default behavior of isearch was highlighting the world that matched in current windows. how can i change that behavior, let it highlighting the world that matched in the whole current buffer.
Upvotes: 3
Views: 481
Reputation: 73256
Perhaps you are looking for the highlight-* commands, to keep things highlighted throughout the buffer whilst you perform other actions?
M-shC-h lists:
Global Bindings Starting With M-s h:
key binding
--- -------
M-s h l highlight-lines-matching-regexp
M-s h p highlight-phrase
M-s h r highlight-regexp
M-s h u unhighlight-regexp
You can also use M-shr during an isearch to invoke highlighting for the current search term.
Tangentially, you can likewise invoke occur on the current search term with M-so
Use C-hC-hb during isearch to see all of the isearch bindings.
Upvotes: 6