aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/sh-script.el
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>2007-04-28 15:37:58 +0000
committerRichard M. Stallman <[email protected]>2007-04-28 15:37:58 +0000
commit534ea50c22ddd91c26a915be1b7ba87256291a3e (patch)
tree18d7e0a0dd0eb666d78b826653b17f4d39c26621 /lisp/progmodes/sh-script.el
parent97dbdc12653d6075d87e5eed5375475103b941b2 (diff)
(sh-mode): Recognize .profile as sh style.
Diffstat (limited to 'lisp/progmodes/sh-script.el')
-rw-r--r--lisp/progmodes/sh-script.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index 2db30ceb4b..60fc4c43e7 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -1530,6 +1530,8 @@ with your script for an edit-interpret-debug cycle."
"ksh")
((string-match "[.]csh\\>" buffer-file-name)
"csh")
+ ((equal (file-name-nondirectory buffer-file-name) ".profile")
+ "sh")
(t
sh-shell-file))
nil nil)