From: Richard M. Stallman Date: Sat, 28 Apr 2007 15:37:58 +0000 (+0000) Subject: (sh-mode): Recognize .profile as sh style. X-Git-Tag: emacs-pretest-22.0.990~129 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=534ea50c22ddd91c26a915be1b7ba87256291a3e;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)