From 5c741cb65f760e0dc3b2af6c1717495852d30199 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 12 Jul 2021 16:00:45 -0400 Subject: [PATCH] Fix #5255: reload session after dashboard init Otherwise, the dashboard replaces one of the buffers when reloading the last session at startup. --- core/autoload/sessions.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/autoload/sessions.el b/core/autoload/sessions.el index ece9fe2f9..b8afd589f 100644 --- a/core/autoload/sessions.el +++ b/core/autoload/sessions.el @@ -69,7 +69,7 @@ ;;;###autoload (defun doom-restore-session-handler (&rest _) "TODO" - (add-hook 'window-setup-hook #'doom-load-session 'append)) + (add-hook 'window-setup-hook #'doom-load-session 100)) ;;;###autoload (add-to-list 'command-switch-alist (cons "--restore" #'doom-restore-session-handler))