Commits

scop  committed 2ef7320

Add auto-mode-alist and interpreter-mode-alist stuff into packages.

  • Participants
  • Parent commits 0ac7ae7

Comments (0)

Files changed (2)

+2002-09-30  Ville Skyttä  <ville.skytta@xemacs.org>
+
+	* cc-mode.el: Add autoloaded auto-mode-alist associations.
+
 2002-09-06  Rendhalver [Peter Brown]  <rendhalver@xemacs.org>
 
 	* Makefile (VERSION): XEmacs package 1.30 released.
 	  )))))))
 
 
+;; 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