From 67c352def1402a015a4d08d39bdf278f2d54f313 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Mon, 4 Mar 2019 14:15:52 +0700 Subject: [PATCH] Override u4e-alert-modeline after enabling doom-modeline. See #130. --- doom-modeline-segments.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index bad947d8..d5c868d6 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -1612,15 +1612,15 @@ mouse-1: Toggle Debug on Quit" (when (featurep 'mu4e-alert) (if (and doom-modeline-mu4e (bound-and-true-p doom-modeline-mode)) - ;; Set mu4e-alert modeline + ;; Delete original modeline (progn - (setq mu4e-alert-modeline-formatter #'identity) (setq global-mode-string - (delete '(:eval mu4e-alert-mode-line) global-mode-string))) + (delete '(:eval mu4e-alert-mode-line) global-mode-string)) + (setq mu4e-alert-modeline-formatter #'identity)) ;; Recover default settings (setq mu4e-alert-modeline-formatter #'mu4e-alert-default-mode-line-formatter)))) (advice-add #'mu4e-alert-enable-mode-line-display :after #'doom-modeline-override-mu4e-alert-modeline) -(add-hook 'doom-modeline-mode-hook #'doom-modeline-override-fancy-battery-modeline) +(add-hook 'doom-modeline-mode-hook #'doom-modeline-override-mu4e-alert-modeline) ;;