[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 |
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.
harry
- Syntax of keyword definition,
harry meyers <=