From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marc Tfardy Newsgroups: gmane.emacs.help Subject: Re: Use C syntax highlighting with other extension Date: Sat, 21 Mar 2009 01:01:25 +0100 Message-ID: <72ip2nFq5o3uU1@mid.individual.net> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1237596057 2422 80.91.229.12 (21 Mar 2009 00:40:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Mar 2009 00:40:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 21 01:42:15 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LkpHw-0002H2-9L for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Mar 2009 01:42:12 +0100 Original-Received: from localhost ([127.0.0.1]:56429 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LkpGZ-000127-In for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Mar 2009 20:40:47 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!newshub.sdsu.edu!feeder.erje.net!news2.arglkargh.de!news.visyn.net!open-news-network.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 12 Original-X-Trace: individual.net HtxIs3QpvtRAwELjvnee7QKZBiaYAU6kIHLvmXKlifQ/HZBoah Cancel-Lock: sha1:5Vtp/y4MClyRstVpVpSgYqhCz4o= User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: Original-Xref: news.stanford.edu gnu.emacs.help:167855 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63145 Archived-At: 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