From: Richard M. Stallman Date: Sat, 28 Apr 2007 17:46:09 +0000 (+0000) Subject: (sh-mode): Recognize .profile as sh style. X-Git-Tag: emacs-pretest-23.0.90~12768 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=68c2f86d7c2561ab565bbb5ca2a4707171106b8b;p=emacs.git (sh-mode): Recognize .profile as sh style. --- 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)