From 8d6974bb659e2316fdf822e0a2edd68d7948e22c Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Thu, 6 Dec 2018 02:45:22 +0800 Subject: [PATCH] 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. --- doom-modeline.el | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index dd01184..03fe7d0 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -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))))