]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/progmodes/sh-script.el (sh-mode): Handle .cshrc (bug#21049)
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 13 Aug 2015 21:05:44 +0000 (17:05 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 13 Aug 2015 21:05:44 +0000 (17:05 -0400)
lisp/progmodes/sh-script.el

index 6709e751ecd7062eae214285bddd3ff28d510185..735c8f968882b130d08f9ea6773c0c4f6cf6d78f 100644 (file)
@@ -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)