1. xemacs
  2. cc-mode

Source

cc-mode / cc-mode.el

Diff from to

File cc-mode.el

  • Ignore whitespace
 	  )))))))
 
 
+;; XEmacs additions
+;;;###autoload
+(add-to-list 'auto-mode-alist '("\\.m\\'" . objc-mode))
+;;;###autoload
+(add-to-list 'auto-mode-alist '("\\.lex\\'" . c-mode))
+;;;###autoload
+(add-to-list 'auto-mode-alist '("\\.y\\'" . c-mode))
+;;;###autoload
+(add-to-list 'auto-mode-alist '("\\.idl\\'" . idl-mode))
+;;;###autoload
+(add-to-list 'auto-mode-alist '("\\.java\\'" . java-mode))
+;;;###autoload
+(add-to-list 'auto-mode-alist '("\\.[ch]\\(pp\\|xx\\|\\+\\+\\)\\'" . c++-mode))
+;;;###autoload
+(add-to-list 'auto-mode-alist '("\\.\\(?:[CH]\\|cc\\|hh\\)\\'" . c++-mode))
+;;;###autoload
+(add-to-list 'auto-mode-alist '("\\.[chi]\\'" . c-mode))
+
 (cc-provide 'cc-mode)
 ;;; cc-mode.el ends here