unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: pjb@informatimago.com (Pascal J. Bourguignon)
To: help-gnu-emacs@gnu.org
Subject: Re: Use C syntax highlighting with other extension
Date: Sat, 21 Mar 2009 02:22:24 +0100	[thread overview]
Message-ID: <871vsrmzzj.fsf@galatea.local> (raw)
In-Reply-To: e012c1c2-48e5-4561-934f-36834e8d2438@n33g2000pri.googlegroups.com

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__


      parent reply	other threads:[~2009-03-21  1:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-20 23:45 Use C syntax highlighting with other extension spasmous2
2009-03-21  0:01 ` Marc Tfardy
2009-03-21  1:22 ` Pascal J. Bourguignon [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=871vsrmzzj.fsf@galatea.local \
    --to=pjb@informatimago.com \
    --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).