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

后端 未结 13 1020
执念已碎
执念已碎 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:29

    Type C-s, then type the current word or type C-w. As a bonus, you can now hit C-s again to search for the word.

    This is called incremental search.

提交回复
热议问题