help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new syntactic symbols in cc-mode


From: Alan Mackenzie
Subject: Re: new syntactic symbols in cc-mode
Date: Thu, 14 Aug 2003 12:40:43 +0000
User-agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686))

Heiko Gerdau <hg@technosis.de> wrote on Thu, 14 Aug 2003 10:03:21 +0200:
> Hi,

> using the cc-mode package is there a way to create a new syntatic
> symbol or to append new keywords to existing syntactic symbols using
> the .emacs configuration file?

Not really, other than by editing and enhancing CC Mode's source files.
But it doesn't really make any sense to "customize" the syntactic symbols
list this sort of way - the syntactic symbols are all about indenting
code, so you'd have to extend the syntax recognition functions (chiefly
c-guess-basic-syntax) anyway.  Having gone through all that work, it's
trivial by comparison to add one or two syntactic symbols in the source
code.

> The background is to customize indentation for language extensions not 
> covered yet. (like Qt's signal and slots).

Aren't there any suitable syntactic symbols already?

> Thanks for any hint.

There's the CC Mode mailing list at <bug-cc-mode@gnu.org>

> Heiko

-- 
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").



reply via email to

[Prev in Thread] Current Thread [Next in Thread]