Ensure *Messages* and *scratch* have a modeline

This commit is contained in:
Henrik Lissner 2018-01-07 00:35:23 -05:00
parent 7872faad3a
commit a5bb69cf6a
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -604,10 +604,11 @@ Returns \"\" to not break --no-window-system."
"Set the default modeline." "Set the default modeline."
(doom-set-modeline 'main t) (doom-set-modeline 'main t)
;; This scratch buffer is already created and doesn't get a modeline. For the ;; These buffers are already created and don't get modelines. For the love of
;; love of Emacs, someone give the man a modeline! ;; Emacs, someone give the man a modeline!
(with-current-buffer "*scratch*" (dolist (bname '("*scratch*" "*Messages*"))
(doom-set-modeline 'main))) (with-current-buffer bname
(doom-set-modeline 'main))))
(defun +doom-modeline|set-special-modeline () (defun +doom-modeline|set-special-modeline ()
(doom-set-modeline 'special)) (doom-set-modeline 'special))