doom-modeline no longer errors out, in case a modeline doesn't exist; add doom-set-modeline

This commit is contained in:
Henrik Lissner 2017-04-25 18:25:54 -04:00
parent b006e9d0dc
commit 8e7aa152bb
5 changed files with 25 additions and 15 deletions

View file

@ -101,9 +101,9 @@ whose dimensions may not be fully initialized by the time this is run."
(unless +doom-dashboard-modeline
(setq +doom-dashboard-old-modeline mode-line-format)
(setq +doom-dashboard-modeline
(if (featurep! :ui doom-modeline)
(doom-modeline 'project)
mode-line-format)))
(or (and (featurep! :ui doom-modeline)
(doom-modeline 'project))
mode-line-format)))
(let ((old-pwd (or dir default-directory)))
(with-current-buffer (doom-fallback-buffer)
(+doom-dashboard-mode)