From f63b48bb47efca9b8aae79df85be8d832c6523dc Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Thu, 24 Jul 2008 02:55:59 +0000 Subject: [PATCH] (auto-mode-alist): Add .i and .ii files. --- lisp/ChangeLog | 2 ++ lisp/progmodes/cc-mode.el | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3de0a1f65e5..034cbb8e33e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 2008-07-24 Dan Nicolaescu + * 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) diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el index 747b35be00a..06f94bde94a 100644 --- a/lisp/progmodes/cc-mode.el +++ b/lisp/progmodes/cc-mode.el @@ -1096,6 +1096,11 @@ This does not load the font-lock package. Use after ;;;###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. -- 2.39.2