coloring text phrase in emacs

i would like to highlight some phrases when a file is opened.

So, i thought i put this in the first line:

-*- eval-expression: (hi-lock-face-phrase-buffer "me:" 'red ) -*-

however, the proper syntax for hi-lock-face-phrase-buffer seems to be:

(hi-lock-face-phrase-buffer "me:"
(defface myface
'((((background dark)) (:background "red" :foreground "black"))
(t (:background "red")))

can it be simpler? I just need to color the text and background.

i have other people's names i need to color red, blue.


∑ http://xahlee.org/

No comments:

Post a Comment