mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-24 03:00:10 +00:00
Improve major-mode segment: add menus for major/minor modes.
This commit is contained in:
parent
cd07d77c9f
commit
266cedffa9
1 changed files with 8 additions and 1 deletions
|
@ -635,7 +635,14 @@ 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 (format-mode-line
|
||||||
|
`(:propertize ("" mode-name)
|
||||||
|
help-echo "Major mode\n\
|
||||||
|
mouse-1: Display major mode menu\n\
|
||||||
|
mouse-2: Show help for major mode\n\
|
||||||
|
mouse-3: Toggle minor modes"
|
||||||
|
mouse-face mode-line-highlight
|
||||||
|
local-map ,mode-line-major-mode-keymap))
|
||||||
(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)
|
||||||
|
|
Loading…
Reference in a new issue