>>>> "Peter" == Peter S Galbraith <Peter>
writes:
Peter> Hello XEmacs developers, First, let me apologise if this is
Peter> the wrong list. I couldn't find a user's list on
Peter>
http://www.xemacs.org/Lists/index.html
Peter> I have a minor mode that needs to add font-lock
Peter> highlighting keywords while the mode is in effect. In
Peter> Emacs, I use the command font-lock-add-keywords to add
Peter> keywords for the curren buffer, but it is not available on
Peter> XEmacs 21.4. Is there a method to do this in XEmacs?
Hmm, this is not really an answer, but perhaps it will point you in
the right direction. For major modes, it seems that XEmacs is
automatically picking up {major-mode-name}-font-lock-keywords. I
wonder if there is similar functionality for minor modes?
Gleb
(define-derived-mode procmail-mode fundamental-mode "Procmail"
"Major mode for editing procmail recipes."
(setq comment-start "#")
(setq comment-start-skip "#[ \t]*")
;;register keywords
(setq procmail-font-lock-keywords
(list '("#.*"
. font-lock-comment-face)
'("^[\t ]*:.*"
. font-lock-type-face)
'("[A-Za-z_]+=.*"
. font-lock-keyword-face)
'("^[\t ]*\\*.*"
. font-lock-doc-string-face)
'("\$[A-Za-z0-9_]+"
. font-lock-function-name-face)))
;(font-lock-add-keywords 'procmail-mode '(("\\(^[ ]*#.*$\\)"
; (1 'font-lock-comment-face t))))
(font-lock-mode))