unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: colorization of mode contents
Date: Sun, 26 Jan 2014 00:21:26 +0100	[thread overview]
Message-ID: <874n4r4pgw.fsf@nl106-137-194.student.uu.se> (raw)
In-Reply-To: 87a9ej4q7a.fsf@nl106-137-194.student.uu.se

Emanuel Berg <embe8573@student.uu.se> writes:

> And you forgot to quote the list (without it, that
> shouldn't even evaluate).
>
> Look below:
>
> (font-lock-add-keywords 'latex-mode
> (("citeNP\{\\(.*\\)\}" (1 'font-lock-comment-face))))

What the ...!?

OK, so you didn't do that (the second) mistake I said
you did, that quote is somehow lost when I receive
messages - perhaps something I did to Gnus or the
message mode... (?)

Anyway, that makes sense, because like I said, if it
wasn't there, that "list" would have produced an error
when evaluated in your .emacs.

So the only thing you should change is '(latex-mode) to
'latex-mode. Then it should work. If you actually use
another mode for LaTeX, that shouldn't matter for this
demo as long as you have the mode I use as well. If you
want to change, just change 'latex-mode to the mode you
use, and then, of course, invoke the command to put a
buffer in *that* mode instead.

-- 
underground experts united:
http://user.it.uu.se/~embe8573


  reply	other threads:[~2014-01-25 23:21 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
2014-01-25 23:05     ` Emanuel Berg
2014-01-25 23:21       ` Emanuel Berg [this message]
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=874n4r4pgw.fsf@nl106-137-194.student.uu.se \
    --to=embe8573@student.uu.se \
    --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).