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

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

Re: Font-lock with newcomment.el


From: lawrence mitchell
Subject: Re: Font-lock with newcomment.el
Date: Fri, 30 May 2003 12:45:24 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50

David C Sterratt wrote:

[...] Having to repeat font-lock-defaults with one minor change.

How about:
(setq font-lock-defaults `((nnrnhoc-font-lock-keywords)
                           nil
                           nil
                           ((?_ . "w")
                            (?\n . "> b")
                            (?/ . ,(if (string-match "XEmacs"
                                                     (emacs-version))
                                       ". 1456"
                                       ". 124b"))
                            (?* . ". 23")
                            (?\^m . "> b"))))

That way, you only have a different bit for the XEmacs/Emacs
difference, rather than having to repeat the entire setq twice.

-- 
lawrence mitchell <address@hidden>


reply via email to

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