15 Jun 2006 17:11
Help using font-lock
Dan Bar Dov <danb <at> voltaire.com>
2006-06-15 15:11:35 GMT
2006-06-15 15:11:35 GMT
I'm having a problem understanding how to use font-lock-mode
without using any major mode.
Actually, I'm editing some text in text-mode and I'd like several
forms to be highlighted.
I tried to set the following in my init.el, but this does not seem to work
(setq font-lock-keywords
'((" \\*.*" . 'font-lock-string-face)
("---+ .*" . 'font-lock-string-face)
))
I do not want to write a new major mode or anything fancy, something very simple.
I'll appreciate any help
Dan
RSS Feed