Set some word with highlight color in emacs

If I want to highlight some words in my document in Emacs, how can I do this.

For example, I have a log file where I recorded some daily information. And I want all the "TODOs" in this magazine to be highlighted.

How can i do this?

Thanks in advance.

+4
source share
1 answer

You should look at this topic:

How to select all occurrences of a word in Emacs buffer

This blog post also describes an easy way to do this:

http://emacs-fu.blogspot.com/2008/12/highlighting-todo-fixme-and-friends.html

The best way to implement this depends on what you want exactly: you can switch the selection manually or create a hook that will do this for any mode.

+7
source

All Articles