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

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

Re: Use C syntax highlighting with other extension


From: Pascal J. Bourguignon
Subject: Re: Use C syntax highlighting with other extension
Date: Sat, 21 Mar 2009 02:22:24 +0100
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (darwin)

spasmous2 <spasmous@gmail.com> writes:

> I have some files that are mostly C code, but have an extension .d
> rather than .c. How can I make emacs use C syntax highlighting with
> these .d files? If I rename the files with a .c then all works nicely
> but I would like to keep the .d extension. Thanks.

If they are clisp sources, there's a file d-mode.el along the sources
that you can load in emacs. 

There's a also a different d-mode.el for the D programming language,
but this has nothing to do with C.  Are you sure your files are C
sources?

Otherwise see Marc's answer.

-- 
__Pascal Bourguignon__


reply via email to

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