21.4.21 and font-lock-add-keywords
John Kuhns
john at designadvance.com
Mon Jan 7 10:56:27 EST 2008
Hi XEmacs team -
So I installed xemacs 21.4.21 today and tried out the new
font-lock-add-keywords method. But, for some reason it's still not
working for me. Is there something I need to set to get it working?
Here's what I tried:
(add-hook 'lisp-mode-hook
(lambda () (font-lock-add-keywords 'lisp-mode
'(("\\<\\(then\\|else\\|@key\\|@optional\\)\\>" .
font-lock-keyword-face)))))
Which I want to result in highlighting standalone keywords. For example,
@key should be hightlighted in this line:
(defun foo (arg1 @key arg2) ... )
Thanks,
-John Kuhns
More information about the XEmacs-Beta
mailing list