From c9014487b12e9c9bf0e6286dffec92212bef879e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 19 Jun 2018 16:43:51 +0200 Subject: [PATCH] Restore workspaces on --restore later doom-post-init-hook isn't late enough. --- modules/feature/workspaces/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/feature/workspaces/config.el b/modules/feature/workspaces/config.el index ae8942116..bc225158a 100644 --- a/modules/feature/workspaces/config.el +++ b/modules/feature/workspaces/config.el @@ -29,7 +29,7 @@ stored in `persp-save-dir'.") ;; If emacs is passed --restore, restore the last session on startup. This is ;; particularly useful for the `+workspace/restart-emacs-then-restore' command. (defun +workspaces-restore-last-session (&rest _) - (add-hook 'doom-post-init-hook #'+workspace/load-session 'append)) + (add-hook 'emacs-startup-hook #'+workspace/load-session 'append)) (map-put command-switch-alist "--restore" #'+workspaces-restore-last-session) ;;