changeset 96966:729f146c194c

(auto-mode-alist): Add .i and .ii files.
author Dan Nicolaescu <dann@ics.uci.edu>
date Thu, 24 Jul 2008 02:55:59 +0000
parents 545e75d84073
children 56a6f086590e
files lisp/ChangeLog lisp/progmodes/cc-mode.el
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Thu Jul 24 02:40:57 2008 +0000
+++ b/lisp/ChangeLog	Thu Jul 24 02:55:59 2008 +0000
@@ -1,5 +1,7 @@
 2008-07-24  Dan Nicolaescu  <dann@ics.uci.edu>
 
+	* progmodes/cc-mode.el (auto-mode-alist): Add .i and .ii files.
+
 	* Makefile.in (ELCFILES): Add term/common-win.elc.
 
 	* vc-dir.el (vc-dir-search, vc-dir-isearch)
--- a/lisp/progmodes/cc-mode.el	Thu Jul 24 02:40:57 2008 +0000
+++ b/lisp/progmodes/cc-mode.el	Thu Jul 24 02:55:59 2008 +0000
@@ -1096,6 +1096,11 @@
 ;;;###autoload (add-to-list 'auto-mode-alist '("\\.y\\(acc\\)?\\'" . c-mode))
 ;;;###autoload (add-to-list 'auto-mode-alist '("\\.lex\\'" . c-mode))
 
+;; Preprocessed files generated by C and C++ compilers.
+;;;###autoload (add-to-list 'auto-mode-alist '("\\.i\\'" . c-mode))
+;;;###autoload (add-to-list 'auto-mode-alist '("\\.ii\\'" . c++-mode))
+
+
 ;;;###autoload
 (defun c-mode ()
   "Major mode for editing K&R and ANSI C code.