changeset 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 d741e1d7761a
children cf94b00de5ef
files lisp/progmodes/sh-script.el
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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)