|
From: | Marc Tfardy |
Subject: | Re: Use C syntax highlighting with other extension |
Date: | Sat, 21 Mar 2009 01:01:25 +0100 |
User-agent: | Thunderbird 2.0.0.21 (Windows/20090302) |
spasmous2 schrieb:
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.
(add-to-list 'auto-mode-alist '("\\.d\\'" . c-mode)) regards Marc
[Prev in Thread] | Current Thread | [Next in Thread] |