mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-26 16:41:04 -05:00
Inhibit doom-dashboard in noninteractive session
This commit is contained in:
@@ -54,12 +54,13 @@
|
||||
(bury-buffer))))
|
||||
|
||||
(defun +doom-dashboard|init (&rest _)
|
||||
(unless noninteractive
|
||||
(add-hook 'after-make-frame-functions #'+doom-dashboard-deferred-reload)
|
||||
(add-hook 'window-configuration-change-hook #'+doom-dashboard-reload)
|
||||
(add-hook 'kill-buffer-query-functions #'+doom-dashboard|kill-buffer-query-fn)
|
||||
(+doom-dashboard-reload)
|
||||
(when (equal (buffer-name) "*scratch*")
|
||||
(switch-to-buffer (doom-fallback-buffer))))
|
||||
(switch-to-buffer (doom-fallback-buffer)))))
|
||||
|
||||
(add-hook 'doom-post-init-hook #'+doom-dashboard|init)
|
||||
|
||||
|
Reference in New Issue
Block a user