summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2007-04-28 17:46:09 +0000
committerRichard M. Stallman <rms@gnu.org>2007-04-28 17:46:09 +0000
commit68c2f86d7c2561ab565bbb5ca2a4707171106b8b (patch)
tree7e9ae0f23b5277e3c173ee92e342e7aca4d778ac
parent4d7528d05918fa0b3b40147f7e7b91835482dd47 (diff)
downloademacs-68c2f86d7c2561ab565bbb5ca2a4707171106b8b.tar.gz
emacs-68c2f86d7c2561ab565bbb5ca2a4707171106b8b.tar.bz2
emacs-68c2f86d7c2561ab565bbb5ca2a4707171106b8b.zip
(sh-mode): Recognize .profile as sh style.
-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 2db30ceb4b2..60fc4c43e7b 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)