[Top][All Lists]

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

Re: Font-lock with newcomment.el

From: Stefan Monnier
Subject: Re: Font-lock with newcomment.el
Date: 30 May 2003 09:57:28 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

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

BTW, setting your syntax-table this way is probably not a good idea because
it will only affect font-locking whereas I suspect that you might want the
rest of Emacs to know about those comments as well (newcomment.el for
example uses the syntax-table (in place of and in addition to
comment-start/end)) so it's better to properly setup your major mode's

Oh, and David, regarding your mode: do a C-h f looking-at, that will
save you a bunch of buffer-substrings.


reply via email to

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