如何突出显示Emacs缓冲区中所有出现的单词 [英] How to highlight all occurrences of a word in an Emacs buffer
问题描述
附录
如果突出显示是永久性的,即将移动点从突出显示的字词应该不会 >导致突出显示被删除。
此外,如果有解决方案可以在亮点之间导航(使用自定义键绑定),这将是有用的。 / p>
也许highlight-symbol.el在 http://nschum.de/src/emacs/highlight-symbol/ 是您正在寻找的:
Notepad++ has a convenient feature: if you select a word in your text (not necessarily a keyword), the word is highlighted throughout the text. Can this be done in Emacs as well? And if so, how? It doesn't necessarily have to work exactly like Notepad++ (i.e., via selection); ideally, I would like to set up a key binding that causes all occurrences of the word under cursor to be highlighted.
Addendum
It would be great if the highlights were permanent, i.e., moving point away from a highlighted word should not cause the highlight to be removed.
Also, it would be useful if there was a solution that made it possible to navigate between highlights (using custom key bindings).
Maybe highlight-symbol.el at http://nschum.de/src/emacs/highlight-symbol/ is what you are looking for:
这篇关于如何突出显示Emacs缓冲区中所有出现的单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!