[Top][All Lists]

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

Re: Syntax of keyword definition

From: harry meyers
Subject: Re: Syntax of keyword definition
Date: 27 Jun 2006 04:48:31 -0700
User-agent: G2/0.2

harry meyers schrieb:

> Hi,
> 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.
No, the syntax is correct. But after some trying I figured out that I
have to disable, then enable font-lock again to make my own keywords
work with latex-mode. Heaven knows why but it works


reply via email to

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