Tassilo Horn <t...@gnu.org> writes: > Yes, this could also work. BTW, `font-lock-defaults' > is automatically buffer-local, no need to make > it so.
Check out `gnus-server-mode' - gnus-srvr.el, which I have as /usr/share/emacs/24.4/lisp/gnus/gnus-srvr.el line 263: (set (make-local-variable 'font-lock-defaults) ; ... >> With MODE as nil the font lock is done one the >> basis of the current buffer. It is not related to >> the mode itself apart from the invocation being >> placed in the mode entry hook. This means the >> keywords have to be added every time the mode >> is entered. > > Yes, but that doesn't make a difference, no? All three solutions are equally bad in that all rely on the hook. The best solution would be to change `gnus-browse-mode' to do what gnus-server-mode does so `font-lock-defaults' is set and one only has to bother with the colors in an ordinary init file and can drop the hook. -- underground experts united http://user.it.uu.se/~embe8573 _______________________________________________ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english