>I suggest you read the doc for the function font-lock-add-keywords.
>
>Presumably, the solution will look something like this:
>
>(font-lock-add-keywords 
>   'jde-mode
>   (list
>     (cons "\\<FIXME\\|XXX"\\>" 'font-lock-fixme-face)))
>

Unfortunatly this method doesn't exist in XEmacs.  Where is it loaded from
in your environment?

Should be able to just add you're (keyword face) to java-font-lock-keywords.

I think this will work:
;;; Make FIXME and XXX stand out as big ugly warnings.
(make-face 'font-lock-fixme-face)
(set-face-foreground 'font-lock-fixme-face "Red")
(set-face-background 'font-lock-fixme-face "Yellow")
(setq fixme-keyword-names "fixme\\|xxx")
(setq extra-keywords
      (list
      (list (concat "\\<\\(" fixme-keyword-names "\\)\\>") 1
'font-lock-fixme-face)
       ))
(append java-font-lock-keywords extra-keywords)

Reply via email to