From 8e61cfeff3a4bf8f3905e2cfac82b17239157df9 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Fri, 1 Mar 2019 02:56:49 +0700 Subject: [PATCH] Force refresh mode-lien to remove original fancy-battery-mode-line. --- doom-modeline-segments.el | 1 + 1 file changed, 1 insertion(+) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 5a1eafd..88a9230 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -1736,6 +1736,7 @@ we don't want to remove that so we just return the original." (doom-modeline-icon-material "battery_unknown" :height 1.1 :v-adjust -0.225 :face 'error) (propertize "N/A" 'face 'error))) " ")))) +(add-hook 'fancy-battery-mode-hook #'force-mode-line-update) (provide 'doom-modeline-segments)