diff options
author | JSDurand <mmemmew@gmail.com> | 2024-10-20 17:29:12 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2024-10-20 17:29:12 +0800 |
commit | bf0cea2c1d8270f29d35c62be546631dcd2b8437 (patch) | |
tree | c55443559e076196dbb17a9c66c616308af2c8dc /modeline.el | |
parent | 003c0cf29a8e8f5edb9c30964b3c76b3acdbf6f6 (diff) |
modeline: Use the variable `mode-name` to display major-mode
I do not know why I used the escaped string "%m" for this purpose.
Diffstat (limited to 'modeline.el')
-rw-r--r-- | modeline.el | 2 |
1 files changed, 1 insertions, 1 deletions
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" |