Improve major-mode segment: add menus for major/minor modes.

This commit is contained in:
Vincent Zhang 2018-09-29 19:09:14 +08:00
parent e4605cd361
commit c5739f3f14

View file

@ -635,7 +635,7 @@ directory, the file name, and its state (modified, read-only or non-existent)."
(doom-modeline-def-segment major-mode (doom-modeline-def-segment major-mode
"The major mode, including environment and text-scale info." "The major mode, including environment and text-scale info."
(propertize (propertize
(concat (format-mode-line mode-name) (concat (substring (format-mode-line mode-line-modes) 2 -3)
(when doom-modeline-env-version (when doom-modeline-env-version
(format " %s" doom-modeline-env-version)) (format " %s" doom-modeline-env-version))
(and (boundp 'text-scale-mode-amount) (and (boundp 'text-scale-mode-amount)