From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jose_luis_fdez_diaz_news@yahoo.es Newsgroups: gmane.emacs.help Subject: adding extensions to cc-mode Date: 22 Aug 2005 03:05:46 -0700 Organization: http://groups.google.com Message-ID: <1124705146.532047.65780@g14g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1124709425 7774 80.91.229.2 (22 Aug 2005 11:17:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Aug 2005 11:17:05 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 22 13:16:58 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E7AHM-0001iK-KA for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Aug 2005 13:15:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E7AL5-0005VB-6G for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Aug 2005 07:19:39 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!g14g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: 212.166.209.1 Original-X-Trace: posting.google.com 1124705150 10306 127.0.0.1 (22 Aug 2005 10:05:50 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 22 Aug 2005 10:05:50 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: g14g2000cwa.googlegroups.com; posting-host=212.166.209.1; posting-account=Q-X42gwAAAAzvY988qdxjVqS-uZi2Sye Original-Xref: shelby.stanford.edu gnu.emacs.help:133379 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:28908 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28908 Hi, 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)) Thanks in advance, Jose Luis.