Fix dashboard not appearing in daemon frames

Because they start in the *server* buffer, instead of the *scratch*
buffer.
This commit is contained in:
Henrik Lissner 2018-06-19 17:44:24 +02:00
parent 0fefc43d39
commit 205cc718d2
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -207,7 +207,7 @@ project (which may be different across perspective)."
(defun +doom-dashboard-initial-buffer ()
"Returns buffer to display on startup. Designed for `initial-buffer-choice'."
(if (eq (current-buffer) (get-buffer "*scratch*"))
(if (string-match-p "^ ?\\*\\(?:scratch\\|server\\)" (buffer-name))
(doom-fallback-buffer)
(current-buffer)))