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."
(doom-set-modeline 'main t)
;; This scratch buffer is already created and doesn't get a modeline. For the
;; love of Emacs, someone give the man a modeline!
(with-current-buffer "*scratch*"
(doom-set-modeline 'main)))
;; 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*"))
(with-current-buffer bname
(doom-set-modeline 'main))))
(defun +doom-modeline|set-special-modeline ()
(doom-set-modeline 'special))