From c55d6dad17aca3e6d3e31d79c5d6fabe32d2be06 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 4 Jul 2018 23:06:47 +0200 Subject: [PATCH] Reduce coupling with buffers library and dashboard --- modules/ui/doom-dashboard/config.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ui/doom-dashboard/config.el b/modules/ui/doom-dashboard/config.el index 16a484a40..2f421d780 100644 --- a/modules/ui/doom-dashboard/config.el +++ b/modules/ui/doom-dashboard/config.el @@ -260,12 +260,12 @@ project (which may be different across perspective)." (defun +doom-dashboard-initial-buffer () "Returns buffer to display on startup. Designed for `initial-buffer-choice'." (if (string-match-p "^ ?\\*\\(?:scratch\\|server\\)" (buffer-name)) - (doom-fallback-buffer) + (get-buffer-create +doom-dashboard-name) (current-buffer))) (defun +doom-dashboard-p (buffer) "Returns t if BUFFER is the dashboard buffer." - (eq buffer (doom-fallback-buffer))) + (eq (buffer-name buffer) +doom-dashboard-name)) (defun +doom-dashboard-update-pwd (&optional pwd) "Update `default-directory' in the Doom dashboard buffer. What it is set to is