all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* customize c++ syntax highlighting
@ 2007-03-01 16:35 sugi.furuta
  2007-03-02 20:30 ` Ken Goldman
  0 siblings, 1 reply; 2+ messages in thread
From: sugi.furuta @ 2007-03-01 16:35 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

Just wondered if anyone could tell me how in C++ major mode I can make
emacs treat a specific word as being syntactically equivalent to a
default C++ type.

For example,

If I type "int foo();" "int" is coloured green and "foo" is coloured
blue, which is nice.

But if I type "mytype foo();" I don't get any colours at all. I'd like
mytype to be treated as if it were a default C++ type.

Thanks,

Sugi

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: customize c++ syntax highlighting
  2007-03-01 16:35 customize c++ syntax highlighting sugi.furuta
@ 2007-03-02 20:30 ` Ken Goldman
  0 siblings, 0 replies; 2+ messages in thread
From: Ken Goldman @ 2007-03-02 20:30 UTC (permalink / raw)
  To: help-gnu-emacs

ctypes will parse your header files, find typedef's, and understand that 
it's a program specific type.

I found that I had to play with its customization a bit because it was 
slow at its most automated setting.

sugi.furuta@gmail.com wrote:
> Just wondered if anyone could tell me how in C++ major mode I can make
> emacs treat a specific word as being syntactically equivalent to a
> default C++ type.
> 
> For example,
> 
> If I type "int foo();" "int" is coloured green and "foo" is coloured
> blue, which is nice.
> 
> But if I type "mytype foo();" I don't get any colours at all. I'd like
> mytype to be treated as if it were a default C++ type.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-02 20:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-01 16:35 customize c++ syntax highlighting sugi.furuta
2007-03-02 20:30 ` Ken Goldman

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.