From: Haines Brown <haines@histomat.net>
To: help-gnu-emacs@gnu.org
Subject: Re: colorization of mode contents
Date: Sat, 25 Jan 2014 15:56:02 -0500 [thread overview]
Message-ID: <87d2jfhjbx.fsf@engels.HistoricalMaterialism.info> (raw)
In-Reply-To: 87zjmk4078.fsf@nl106-137-194.student.uu.se
Emanuel, I very much appreciate your guidance, but so far I've not been
able to get things working. Just to be sure, let me go through the routine:
I have a tex document (LaTeX, BibTeX), class article, and then
\usepackage[T1]{fontenc} %
\usepackage{achicago}
\bibliographystyle{achicago}
\usepackage{times,comment,csquotes,lipsum,ragged2e,setspace,color,url}
...
In my .emacs I have the stanza:
(font-lock-add-keywords
'(latex-mode)
'(("citeNP\{\\(.*\\)\}" (1 'font-lock-comment-face))))
I open the article emacs and see that it is LaTeX/P Fly mode. I then do
M-x latex-mode on the file.
In this article I type: \cite{value}. The "\cite" command is red and the
key word "value" is green.
I next type \citeNP{value}, and both the command and the key word remain
black. Typing M-x latex-mode again after typing does not help.
Haines
next prev parent reply other threads:[~2014-01-25 20:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-24 16:43 colorization of mode contents Haines Brown
2014-01-25 14:14 ` Emanuel Berg
2014-01-25 15:55 ` Haines Brown
2014-01-25 17:15 ` Emanuel Berg
2014-01-25 20:56 ` Haines Brown [this message]
2014-01-25 23:05 ` Emanuel Berg
2014-01-25 23:21 ` Emanuel Berg
2014-01-26 12:35 ` Haines Brown
2014-01-26 15:51 ` Emanuel Berg
2014-01-27 15:49 ` Haines Brown
2014-01-27 16:56 ` Emanuel Berg
2014-01-27 19:36 ` Haines Brown
2014-01-25 21:27 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d2jfhjbx.fsf@engels.HistoricalMaterialism.info \
--to=haines@histomat.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).