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:
parent
3bd262117d
commit
cd6fb816fd
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue