Force refresh mode-lien to remove original fancy-battery-mode-line.

This commit is contained in:
Vincent Zhang 2019-03-01 02:56:49 +07:00
parent 5f9d9a2e48
commit 8e61cfeff3

View file

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