help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

what's simple syntax for defining faces? (just color text and backgroun


From: Xah Lee
Subject: what's simple syntax for defining faces? (just color text and background color)
Date: Wed, 2 Sep 2009 12:25:37 -0700 (PDT)
User-agent: G2/1.0

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 hi-pink
  '((((background dark)) (:background "red" :foreground "black"))
    (t (:background "red")))
  "Face for hi-lock mode."
  :group 'hi-lock-faces)
)

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.

Thanks.

  Xah
∑ http://xahlee.org/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]