From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: Custom colour for a custom command
Date: Sun, 04 Oct 2015 02:22:04 +0200 [thread overview]
Message-ID: <87lhbjv5xv.fsf@debian.uxu> (raw)
In-Reply-To: 87mvw0rbu7.fsf@debian.uxu
Emanuel Berg <embe8573@student.uu.se> writes:
> So probably instead I'd be content with just
> highlighting the command which will make for
> a super-easy regexp and a most-definitely tangible
> improvement at low cost.
(font-lock-add-keywords 'latex-mode
'(("myparencite" . font-lock-constant-face )))
Note the change in notation which comes with this
being only one word with no syntactic somersaults to
it which has to be dealt with by grouping (the
\\( ... \\) in the previous suggestion, groups which
are refered to by the enumeration digits that are also
unnecessary now).
--
underground experts united
http://user.it.uu.se/~embe8573
prev parent reply other threads:[~2015-10-04 0:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-30 17:49 Custom colour for a custom command Sharon Kimble
2015-10-02 0:00 ` Emanuel Berg
2015-10-02 19:13 ` Sharon Kimble
2015-10-03 0:47 ` Emanuel Berg
2015-10-03 1:16 ` Emanuel Berg
2015-10-04 0:22 ` Emanuel Berg [this message]
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=87lhbjv5xv.fsf@debian.uxu \
--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).