How to highlight all occurrences of a word in an Emacs buffer?

后端 未结 13 1030
执念已碎
执念已碎 2020-12-12 11:56

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

13条回答
  •  青春惊慌失措
    2020-12-12 12:22

    Try iedit. It highlights the word at point and lets you edit all occurrences of it easily. With an additional keystroke (C-'), it hides all the lines without that word in it. Very handy!

提交回复
热议问题