unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: kgold@watson.ibm.com (kgold)
Subject: Re: adding extensions to cc-mode
Date: 22 Aug 2005 18:07:10 GMT	[thread overview]
Message-ID: <430a144e_3@news1.prserv.net> (raw)
In-Reply-To: 1124705146.532047.65780@g14g2000cwa.googlegroups.com

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

  reply	other threads:[~2005-08-22 18:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-22 10:05 adding extensions to cc-mode jose_luis_fdez_diaz_news
2005-08-22 18:07 ` kgold [this message]
2005-08-22 19:16   ` Peter Dyballa

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=430a144e_3@news1.prserv.net \
    --to=kgold@watson.ibm.com \
    /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).