Is there a way to get a word to be rendered with a different face in text mode?
Emacs text-mode highlighting
780 Views Asked by Nathaniel Flath At
2
There are 2 best solutions below
1

Yes,
What you want is font-lock-mode.
See here: http://www.gnu.org/software/emacs/manual/html_node/emacs/Font-Lock.html
Specifically you'll want to turn on font-lock-mode
and then specify a list of keywords via font-lock-add-keywords
.
Check out `highlight-regexp'. Just type in the word you want to change the face for (although it can be any regular expression).
M-x highlight-regexp