|
From: | Ralf Angeli |
Subject: | Re: Face specifications in font-lock-keywords. |
Date: | Wed, 06 Apr 2005 18:22:59 +0200 |
User-agent: | Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) |
* Kim F. Storm (2005-04-06) writes: > I think (face FACE [PROP VAL]...) would be clearer. AFAICS the "face FACE" part isn't even necessary; you can pass a property/value-only list to `font-lock-keywords' and it will work as well (you might have to disable global-font-lock-mode before trying this): (progn (pop-to-buffer (get-buffer-create "*foo*")) (insert "foo") (setq font-lock-keywords '(("foo" 0 '(:foreground "green")))) (font-lock-fontify-keywords-region (point-min) (point-max))) This is not covered in the manual and doc string yet, or am I missing something? -- Ralf
[Prev in Thread] | Current Thread | [Next in Thread] |