From bf0cea2c1d8270f29d35c62be546631dcd2b8437 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Sun, 20 Oct 2024 17:29:12 +0800 Subject: modeline: Use the variable `mode-name` to display major-mode I do not know why I used the escaped string "%m" for this purpose. --- modeline.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modeline.el b/modeline.el index 3f98d77..09ef407 100644 --- a/modeline.el +++ b/modeline.el @@ -607,7 +607,7 @@ string in the mode line.") ('mode-line-inactive)))) (concat (modeline-propertize - (format-mode-line '("%m") face) + (format-mode-line (list mode-name) face) nil "Major mode\nmouse-1: Display major mode menu\nmouse-2:\ Show help for major mode\nmouse-3: Toggle minor modes" -- cgit v1.2.3-18-g5258