From 2ae39ff5ca079d47e83e0aadceb910f86c455025 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Thu, 28 Feb 2019 20:51:10 +0700 Subject: [PATCH] Fix: display invalid information in mu4e segment. --- doom-modeline.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doom-modeline.el b/doom-modeline.el index 9bc110c..5383b39 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -155,7 +155,8 @@ If DEFAULT is non-nil, set the default mode-line for all buffers." (defvar doom-modeline--default-mode-line mode-line-format) -(defvar mu4e-alert-modeline-formatter nil) +(unless (featurep 'mu4e-alert) + (defvar mu4e-alert-modeline-formatter #'ignore)) (defvar doom-modeline--mu4e-alert-modeline-formatter mu4e-alert-modeline-formatter) ;;;###autoload