mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +00:00
Simplify minor modes.
Remove help-echo and mouse-click since doom-modeline-def-segment doesn't support mode-line-minor-mode-keymap. See https://github.com/seagle0128/doom-modeline/issues/59#issuecomment-444423882.
This commit is contained in:
parent
4235da6465
commit
8d6974bb65
1 changed files with 1 additions and 13 deletions
|
@ -887,19 +887,7 @@ mouse-3: Toggle minor modes"
|
|||
(when doom-modeline-minor-modes
|
||||
(propertize
|
||||
(concat " "
|
||||
(format-mode-line
|
||||
`((:propertize ("" minor-mode-alist)
|
||||
mouse-face mode-line-highlight
|
||||
help-echo "Minor mode\n\
|
||||
mouse-1: Display minor mode menu\n\
|
||||
mouse-2: Show help for minor mode\n\
|
||||
mouse-3: Toggle minor modes"
|
||||
local-map ,mode-line-minor-mode-keymap)
|
||||
(:propertize "%n"
|
||||
mouse-face mode-line-highlight
|
||||
help-echo "mouse-2: Remove narrowing from buffer"
|
||||
local-map ,(make-mode-line-mouse-map
|
||||
'mouse-2 #'mode-line-widen))))
|
||||
(format-mode-line `(:propertize ("" minor-mode-alist)))
|
||||
" ")
|
||||
'face (if (doom-modeline--active) 'doom-modeline-buffer-minor-mode))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue