From e4b5cf5a56c2967ffaa468e4ba71f865cd60321b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 18 Mar 2017 12:15:50 -0400 Subject: [PATCH] ui/doom-dashboard: don't display dashboard if passed files (e.g. emacs file1.py) --- modules/ui/doom-dashboard/config.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/ui/doom-dashboard/config.el b/modules/ui/doom-dashboard/config.el index fcd98d69a..fbc7fee26 100644 --- a/modules/ui/doom-dashboard/config.el +++ b/modules/ui/doom-dashboard/config.el @@ -42,7 +42,6 @@ ;; (setq doom-fallback-buffer +doom-dashboard-name) -(add-hook 'emacs-startup-hook '+doom-dashboard/open) (add-hook 'after-make-frame-functions '+doom-dashboard-deferred-reload) (add-hook! 'window-setup-hook (add-hook! 'kill-buffer-query-functions @@ -50,7 +49,9 @@ (ignore (ignore-errors (+doom-dashboard-force-reload)) (bury-buffer)))) (add-hook 'window-configuration-change-hook '+doom-dashboard-reload) - (+doom-dashboard-reload)) + (+doom-dashboard-reload) + (when (equal (buffer-name) "*scratch*") + (switch-to-buffer (doom-fallback-buffer)))) ;; Compatibility with `midnight-mode' and `clean-buffer-list' (after! midnight-mode