From: Stefan Monnier Date: Thu, 13 Aug 2015 21:05:44 +0000 (-0400) Subject: * lisp/progmodes/sh-script.el (sh-mode): Handle .cshrc (bug#21049) X-Git-Tag: emacs-25.0.90~1373^2~40 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=acac9f4d727072b31914c9224957ff8dfec97df1;p=emacs.git * lisp/progmodes/sh-script.el (sh-mode): Handle .cshrc (bug#21049) --- diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 6709e751ecd..735c8f96888 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el @@ -1675,7 +1675,7 @@ with your script for an edit-interpret-debug cycle." ((string-match "[.]sh\\>" buffer-file-name) "sh") ((string-match "[.]bash\\>" buffer-file-name) "bash") ((string-match "[.]ksh\\>" buffer-file-name) "ksh") - ((string-match "[.]csh\\>" buffer-file-name) "csh") + ((string-match "[.]t?csh\\(rc\\)?\\>" buffer-file-name) "csh") ((equal (file-name-nondirectory buffer-file-name) ".profile") "sh") (t sh-shell-file)) nil nil)