This is what I just have done in my .emacs file, using your stuff as a
starting point:
;;; Make XXX00 stand out as big ugly warnings.
(setq font-lock-fixme-face (make-face 'font-lock-fixme-face))
(set-face-foreground 'font-lock-fixme-face "Red")
(set-face-background 'font-lock-fixme-face "Yellow")
(setq font-lock-scaffold-face (make-face 'font-lock-scaffold-face))
(set-face-foreground 'font-lock-scaffold-face "Magenta")
(font-lock-add-keywords 'jde-mode
'(("\\(^.*XXX00.*$\\)" 1 font-lock-fixme-face prepend)
("\\<\\(Debug.assert\\|Debug.error\\|Debug.notImplemented\\)\\>" .
font-lock-scaffold-face)))
Iom not familiar with elisp but it worked fine for me.
Hope this helps
Alexei.
----- Original Message -----
From: "Will Sargent" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, August 28, 2000 2:36 PM
Subject: RE: Making FIXME comments work in JDE
> > 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)
>
> I've done this, but when I check the variable, I don't see xxx or fixme in
> java-font-lock-keywords. It says it's loaded from "font-lock", if that
helps any.
> Typing the offending keywords in a Java file shows no change.
>
> Do I need to set this before we load up font-lock? I'm kind of at a
loss...
>
> Will.
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/