Fix #5255: reload session after dashboard init

Otherwise, the dashboard replaces one of the buffers when reloading the
last session at startup.
This commit is contained in:
Henrik Lissner 2021-07-12 16:00:45 -04:00
parent 9ffa5d6c2f
commit 5c741cb65f

View file

@ -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))