From c5739f3f14372c5ccfd498884c73a27627512f67 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Sat, 29 Sep 2018 19:09:14 +0800 Subject: [PATCH] Improve major-mode segment: add menus for major/minor modes. --- doom-modeline.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doom-modeline.el b/doom-modeline.el index 7599687..14d7ea7 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -635,7 +635,7 @@ directory, the file name, and its state (modified, read-only or non-existent)." (doom-modeline-def-segment major-mode "The major mode, including environment and text-scale info." (propertize - (concat (format-mode-line mode-name) + (concat (substring (format-mode-line mode-line-modes) 2 -3) (when doom-modeline-env-version (format " %s" doom-modeline-env-version)) (and (boundp 'text-scale-mode-amount)