From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kgold@watson.ibm.com (kgold) Newsgroups: gmane.emacs.help Subject: Re: adding extensions to cc-mode Date: 22 Aug 2005 18:07:10 GMT Organization: IBM T.J. Watson Research Center Message-ID: <430a144e_3@news1.prserv.net> References: <1124705146.532047.65780@g14g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1124733409 21366 80.91.229.2 (22 Aug 2005 17:56:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Aug 2005 17:56:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 22 19:56:45 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E7GX4-0001SC-6x for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Aug 2005 19:56:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E7Gan-000690-KP for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Aug 2005 14:00:17 -0400 X-Newsreader: xrn 9.02 Original-Newsgroups: gnu.emacs.help Original-NNTP-Posting-Host: yktgi01e0-s5.watson.ibm.com Original-X-Trace: 22 Aug 2005 18:07:10 GMT, yktgi01e0-s5.watson.ibm.com Original-Lines: 46 Original-X-Complaints-To: abuse@prserv.net Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!proxad.net!easynet-quince!easynet.net!peer.news.zetnet.net!newsfeed.uk.prserv.net!newsfeed2.us.prserv.net!prserv.net!news1.prserv.net!alpha.watson.ibm.com!kgold Original-Xref: shelby.stanford.edu gnu.emacs.help:133385 Original-To: help-gnu-emacs@gnu.org 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:28915 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28915 Did you re-read the .emacs file after you edited it. E.g., restart emacs, or point to the end of the statement and C-x C-e (C-x C-e runs the command eval-last-sexp). The extra quotes might work, but mine looks like: (setq auto-mode-alist (append '( ("\\.[Ss]$" . asm-mode) ("\\.68k$" . asm-mode) ("\\.inc$" . asm-mode) ("\\.[bB][aA][tT]$" . bat-mode) ("\\.x$" . c-mode) ) auto-mode-alist)) jose_luis_fdez_diaz_news@yahoo.es writes: > > I went through the code in the .emacs file and tried to add .pc file > extensions to the auto-mode-alist, but it still doesn't color my .pc > (Pro*C) > files when I bring them up. I am runnig emacs on Windows. Got any > suggestions? > > > > ;; This is how emacs tells the file type by the file suffix. > (setq auto-mode-alist > (append '(("\\.mss$" . scribe-mode)) > '(("\\.bib$" . bibtex-mode)) > '(("\\.tex$" . latex-mode)) > '(("\\.obj$" . lisp-mode)) > '(("\\.st$" . smalltalk-mode)) > '(("\\.Z$" . uncompress-while-visiting)) > '(("\\.cs$" . indented-text-mode)) > '(("\\.C$" . c++-mode)) > '(("\\.cc$" . c++-mode)) > '(("\\.icc$" . c++-mode)) > '(("\\.c$" . c-mode)) > '(("\\.pc$" . c-mode)) > '(("\\.y$" . c-mode)) > '(("\\.h$" . c++-mode)) > auto-mode-alist)) -- Ken Goldman kgold@watson.ibm.com 914-784-7646