From 94d967490f708bf1333cd54fc6918c9dc39c936d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 26 Nov 2024 15:00:09 -0500 Subject: [PATCH] fix(sh): don't set mode-name in sh-mode derivatives Also capitalizes the name, as this is the convention for mode names in most major modes. Fix: #8178 --- modules/lang/sh/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lang/sh/config.el b/modules/lang/sh/config.el index 7f2ba3774..d1699bef1 100755 --- a/modules/lang/sh/config.el +++ b/modules/lang/sh/config.el @@ -43,7 +43,7 @@ (setq sh-indent-after-continuation 'always) ;; [pedantry intensifies] - (setq-hook! 'sh-mode-hook mode-name "sh") + (setq-hook! 'sh-mode-local-vars-hook mode-name "Sh") ;; recognize function names with dashes in them (add-to-list 'sh-imenu-generic-expression