Mercurial > emacs
comparison lisp/progmodes/cc-mode.el @ 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 | 59d141ae8c74 |
children | 9637a590d441 |
comparison
equal
deleted
inserted
replaced
96965:545e75d84073 | 96966:729f146c194c |
---|---|
1093 ;; NB: The following two associate yacc and lex files to C Mode, which | 1093 ;; NB: The following two associate yacc and lex files to C Mode, which |
1094 ;; is not really suitable for those formats. Anyway, afaik there's | 1094 ;; is not really suitable for those formats. Anyway, afaik there's |
1095 ;; currently no better mode for them, and besides this is legacy. | 1095 ;; currently no better mode for them, and besides this is legacy. |
1096 ;;;###autoload (add-to-list 'auto-mode-alist '("\\.y\\(acc\\)?\\'" . c-mode)) | 1096 ;;;###autoload (add-to-list 'auto-mode-alist '("\\.y\\(acc\\)?\\'" . c-mode)) |
1097 ;;;###autoload (add-to-list 'auto-mode-alist '("\\.lex\\'" . c-mode)) | 1097 ;;;###autoload (add-to-list 'auto-mode-alist '("\\.lex\\'" . c-mode)) |
1098 | |
1099 ;; Preprocessed files generated by C and C++ compilers. | |
1100 ;;;###autoload (add-to-list 'auto-mode-alist '("\\.i\\'" . c-mode)) | |
1101 ;;;###autoload (add-to-list 'auto-mode-alist '("\\.ii\\'" . c++-mode)) | |
1102 | |
1098 | 1103 |
1099 ;;;###autoload | 1104 ;;;###autoload |
1100 (defun c-mode () | 1105 (defun c-mode () |
1101 "Major mode for editing K&R and ANSI C code. | 1106 "Major mode for editing K&R and ANSI C code. |
1102 To submit a problem report, enter `\\[c-submit-bug-report]' from a | 1107 To submit a problem report, enter `\\[c-submit-bug-report]' from a |