changeset 77593:dac1de8103f2

(sh-mode): Recognize .profile as sh style.
author Richard M. Stallman <rms@gnu.org>
date Sat, 28 Apr 2007 15:37:58 +0000
parents 096728c6fee0
children 8523f69b8831
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 14:28:22 2007 +0000
+++ b/lisp/progmodes/sh-script.el	Sat Apr 28 15:37:58 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)