From: Alan Mackenzie <acm@muc.de>
Subject: Re: help with font locking
Date: Thu, 12 Jan 2006 20:06:14 +0000 [thread overview]
Message-ID: <mrc6qd.08.ln@acm.acm> (raw)
In-Reply-To: 2hhxf.91$Jd.25@newssvr25.news.prodigy.net
In gnu.emacs.help Mark P <usenet@fall2005remove.fastmailcaps.fm> wrote:
> I'm trying to edit my .emacs file so that in c++-mode a frequently used
> user-defined type "Coord" is highlighted like any built-in type (int,
> bool, etc.) I searched around for a while but found only very limited
> information. The best I could produce was the following:
[ .... ]
> Can anyone suggest a way to make the behavior for Coord match that for
> int. Any links to detail documentation on how this works would also be
> appreciated. (For example, why all the quotes and slashes in the .emacs
> code?)
In CC Mode 5.30, the new variable c++-font-lock-extra-types was
introduced to do exactly what you want. Chances are, you've only got CC
Mode 5.28 (do M-x c-version). In that case, download the latest version
(5.31.1) from <http://cc-mode.sourceforge.net/release.php>. The variable
is documented on page "Font Locking Preliminaries" of the manual
distributed with the release.
> Thanks,
> Mark
--
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").
next prev parent reply other threads:[~2006-01-12 20:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-12 0:20 help with font locking Mark P
2006-01-12 17:31 ` Kevin Rodgers
2006-01-12 20:06 ` Alan Mackenzie [this message]
2006-01-13 0:27 ` Mark P
[not found] ` <mailman.847.1137087711.26925.help-gnu-emacs@gnu.org>
2006-01-12 20:28 ` Mark P
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=mrc6qd.08.ln@acm.acm \
--to=acm@muc.de \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.