mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -601,9 +601,6 @@ Returns \"\" to not break --no-window-system."
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
(defun +doom-modeline|init ()
|
(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
|
;; These buffers are already created and don't get modelines. For the love of
|
||||||
;; Emacs, someone give the man a modeline!
|
;; Emacs, someone give the man a modeline!
|
||||||
(dolist (bname '("*scratch*" "*Messages*"))
|
(dolist (bname '("*scratch*" "*Messages*"))
|
||||||
@ -624,6 +621,8 @@ Returns \"\" to not break --no-window-system."
|
|||||||
;; Bootstrap
|
;; Bootstrap
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
(doom-set-modeline 'main t)
|
||||||
|
|
||||||
(add-hook 'doom-init-theme-hook #'+doom-modeline|init)
|
(add-hook 'doom-init-theme-hook #'+doom-modeline|init)
|
||||||
(add-hook 'doom-scratch-buffer-hook #'+doom-modeline|set-special-modeline)
|
(add-hook 'doom-scratch-buffer-hook #'+doom-modeline|set-special-modeline)
|
||||||
(add-hook '+doom-dashboard-mode-hook #'+doom-modeline|set-project-modeline)
|
(add-hook '+doom-dashboard-mode-hook #'+doom-modeline|set-project-modeline)
|
||||||
|
Reference in New Issue
Block a user