Commits

Anonymous committed 058e4e9

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

Comments (0)

Files changed (2)

+2002-09-30  Ville Skyttä  <ville.skytta@xemacs.org>
+
+	* sh-script.el: Add autoloaded auto-mode-alist and
+	interpreter-mode-alist associations.
+
 2002-04-24  Steve Youngs  <youngs@xemacs.org>
 
 	* Makefile (VERSION): XEmacs package 1.15 released.
   (if (re-search-forward sh-end-of-command nil t)
       (goto-char (match-end 1))))
 
+;; XEmacs additions
+;;;###autoload
+(add-to-list
+ 'auto-mode-alist
+ ;; Unix specific
+ '("/\\.\\(?:bash_\\|z\\)?\\(profile\\|login\\|logout\\)\\'" . sh-mode))
+;;;###autoload
+(add-to-list
+ 'auto-mode-alist
+ ;; Unix specific
+ '("/\\.\\(?:[ckz]sh\\|bash\\|tcsh\\|es\\|xinit\\|startx\\)rc\\'" . sh-mode))
+;;;###autoload
+(add-to-list
+ ;; Unix specific
+ 'auto-mode-alist '("/\\.\\(?:[kz]shenv\\|xsession\\)\\'" . sh-mode))
+;;;###autoload
+(add-to-list 'auto-mode-alist '("\\.m?spec$" . sh-mode))
+;;;###autoload
+(add-to-list 'auto-mode-alist '("\\.\\(?:[ckz]?sh\\|shar\\)\\'" . sh-mode))
+;;;###autoload
+(add-to-list 'interpreter-mode-alist '("^#!.*csh" . sh-mode))
+;;;###autoload
+(add-to-list 'interpreter-mode-alist '("^#!.*sh\\b" . sh-mode))
+;;;###autoload
+(add-to-list 'interpreter-mode-alist '("^:" . sh-mode))
+
 (provide 'sh-script)
 
 ;;; sh-script.el ends here