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:
Vincent Zhang 2018-12-06 02:45:22 +08:00
parent 4235da6465
commit 8d6974bb65

View file

@ -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))))