emacs isearch lazy highlight for whole buffer

好久不见. 提交于 2019-12-07 15:39:38

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/9938174/emacs-isearch-lazy-highlight-for-whole-buffer

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!