[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Syntax of keyword definition

From: harry meyers
Subject: Syntax of keyword definition
Date: 27 Jun 2006 03:01:44 -0700
User-agent: G2/0.2


I am using the latex package play to typeset dramatic texts. To
highlight a name of my figure I added the following line to my ~/.emacs

(font-lock-add-keywords 'latex-mode '(("\\<\\(Harry\\)" 1
font-lock-warning-face t)))

Now, when I start latex-mode in the *scratch* buffer and type Harry it
is highlighted. But if I open a .tex file with Harry in it, it is not.
The same happens when I save the *scratch* buffer to example.tex - the
highlighting disappears instantly.
I presume something must be wrong with syntax.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]