tehom-font-lock

Author: Tom Breton

Updated:

Summary

A little help for writing fontlock support

Commentary

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)))

Dependencies

Reverse dependencies