[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
`font-lock-add-keywords' adds wrong face.
From: |
Elena |
Subject: |
`font-lock-add-keywords' adds wrong face. |
Date: |
Wed, 08 Dec 2010 15:17:56 -0000 |
User-agent: |
G2/1.0 |
Hello,
I'm trying to highlight global variables (surrounded by "*") in `emacs-
lisp-mode'. Highlighting works, but with a wrong face. Here is my code
(evaluated in a fresh "emacs -Q"):
(font-lock-add-keywords 'emacs-lisp-mode
'("\\_<\\*\\(?:\\w\\|\\s_\\)+\\*\\_>" . 'font-lock-warning-face)
t)
However, global variables are highlighted with `font-lock-keyword-
face' (comments are highlighted correctly).
What am I missing? Thanks.
- `font-lock-add-keywords' adds wrong face.,
Elena <=