Author: Tom Breton
Updated:
A little help for writing fontlock support
This is a little thing I wrote because building expressions for fontlock mode was a PITA. Now for the common case you can build a font-lock expression as simply as: (tehom-build-font-lock-expression '("this-word" "that-word")) Or to use a specific face: (tehom-build-font-lock-expression '("this-word" "that-word") some-face) So what you'd write, all told, would look something like: (require 'tehom-font-lock) (font-lock-add-keywords 'some-mode (list (tehom-build-font-lock-expression '("this-word" "that-word") some-face)))