ui/doom-modeline: set modeline sooner

This may address scenarios where the modeline is unset, especially in
terminal Emacs sessions (like when emacs -nw is your EDITOR).
This commit is contained in:
Henrik Lissner 2018-01-28 16:50:19 -05:00
parent 3bd262117d
commit cd6fb816fd
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -601,9 +601,6 @@ Returns \"\" to not break --no-window-system."
;;
(defun +doom-modeline|init ()
"Set the default modeline."
(doom-set-modeline 'main t)
;; These buffers are already created and don't get modelines. For the love of
;; Emacs, someone give the man a modeline!
(dolist (bname '("*scratch*" "*Messages*"))
@ -624,6 +621,8 @@ Returns \"\" to not break --no-window-system."
;; Bootstrap
;;
(doom-set-modeline 'main t)
(add-hook 'doom-init-theme-hook #'+doom-modeline|init)
(add-hook 'doom-scratch-buffer-hook #'+doom-modeline|set-special-modeline)
(add-hook '+doom-dashboard-mode-hook #'+doom-modeline|set-project-modeline)