Skip to content

Commit

Permalink
Fix doomemacs#5255: reload session after dashboard init
Browse files Browse the repository at this point in the history
Otherwise, the dashboard replaces one of the buffers when reloading the
last session at startup.
  • Loading branch information
hlissner committed Jul 12, 2021
1 parent 9ffa5d6 commit 5c741cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/autoload/sessions.el
Expand Up @@ -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))
Expand Down

0 comments on commit 5c741cb

Please sign in to comment.