Fix #1315: blank modeline on doom/reload

Default mode-line-format shouldn't be tampered with except at startup.
This commit is contained in:
Henrik Lissner 2019-04-09 14:35:11 -04:00
parent 31eb845f6b
commit 2c7f917691
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -5,8 +5,9 @@
(def-package! doom-modeline
:hook (after-init . doom-modeline-mode)
:init
;; prevent flash of unstyled modeline at startup
(setq-default mode-line-format nil)
(unless after-init-time
;; prevent flash of unstyled modeline at startup
(setq-default mode-line-format nil))
;; We display project info in the modeline ourselves
(setq projectile-dynamic-mode-line nil)
;; Set these early so they don't trigger variable watchers