unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* adding extensions to cc-mode
@ 2005-08-22 10:05 jose_luis_fdez_diaz_news
  2005-08-22 18:07 ` kgold
  0 siblings, 1 reply; 3+ messages in thread
From: jose_luis_fdez_diaz_news @ 2005-08-22 10:05 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-08-22 19:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-22 10:05 adding extensions to cc-mode jose_luis_fdez_diaz_news
2005-08-22 18:07 ` kgold
2005-08-22 19:16   ` Peter Dyballa

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).