Suppose I want to make additions to a major mode's syntax highlighting, how would I do this without modifying the major mode's source code?
- Redefine variable in .emacs
- Define a minor mode with the changes
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.Sign up to join this community
font-lock-add-keywords. See the Elisp manual, node Customizing Keywords.
The Elisp manual is your friend:
C-h i, then choose it. In the manual,
i is your friend. E.g.,
i font-lock TAB.