help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[h-e-w] font lock for text mode


From: Jeff Rancier
Subject: [h-e-w] font lock for text mode
Date: Thu, 10 Jan 2002 12:04:16 -0500

Hello,

I use the following code to mark up my TODO: lines (thanks to someones
previous posting) in this example, for jde-mode.

(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
                        '(("\\(^.*TODO:.*$\\)" 1 font-lock-fixme-face
prepend)

("\\<\\(Debug.assert\\|Debug.error\\|Debug.notImplemented\\)\\>" .
                           font-lock-scaffold-Face)))

That code in fact marks up as red on yellow for all the text on the line.  I
tried the same for text-mode, and get no font lock.  It works on c-mode,
jde-mode, emacs-lisp-mode, and visual-basic-mode, but not on text-mode.

Any ideas?

TIA,
Jeff





reply via email to

[Prev in Thread] Current Thread [Next in Thread]