From 68c2f86d7c2561ab565bbb5ca2a4707171106b8b Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 28 Apr 2007 17:46:09 +0000 Subject: [PATCH] (sh-mode): Recognize .profile as sh style. --- lisp/progmodes/sh-script.el | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.39.2