* font-lock-add-keywords in text-mode
@ 2004-09-07 9:15 NAKAMURA Toshikazu
0 siblings, 0 replies; only message in thread
From: NAKAMURA Toshikazu @ 2004-09-07 9:15 UTC (permalink / raw)
I would like to highlight some characters in text-mode, but it looks
like font-lock-add-keywords fails to work when font-lock-defaults's
value is nil as in text-mode. If one sets an appropriate value for
font-lock-defaults using hooks or something, it works but I wonder if
this is really what one is supposed to do.
(add-hook 'text-mode-hook
(lambda ()
(setq font-lock-defaults '(nil nil nil nil nil))))
It seems to me that font-lock-add-keywords should work even if
font-lock-defaults's value is nil. If not, is there a better
workaround? I am using GNU Emacs 21.3.50.1 (i386-mingw-nt5.0.2195) of
2004-09-01 on MS Windows 2000.
Thanks.
--
NAKAMURA Toshikazu
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-09-07 9:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-07 9:15 font-lock-add-keywords in text-mode NAKAMURA Toshikazu
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.