diff lisp/progmodes/sh-script.el @ 80809:958471f534b7

(sh-mode): Recognize .profile as sh style.
author Richard M. Stallman <rms@gnu.org>
date Sat, 28 Apr 2007 17:46:09 +0000
parents e3694f1cb928
children f942a5cc0de4 8021008d25bf 70bf32a0f523
line wrap: on
line diff
--- a/lisp/progmodes/sh-script.el	Sat Apr 28 17:24:22 2007 +0000
+++ b/lisp/progmodes/sh-script.el	Sat Apr 28 17:46:09 2007 +0000
@@ -1530,6 +1530,8 @@
           "ksh")
          ((string-match "[.]csh\\>" buffer-file-name)
           "csh")
+	 ((equal (file-name-nondirectory buffer-file-name) ".profile")
+          "sh")
          (t
           sh-shell-file))
    nil nil)