From 6672ee5cf56eeca14c1ef556a9f82525d1ddb4f5 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 12 Jul 2021 16:22:30 -0400 Subject: [PATCH] Simplify session persistence --- core/autoload/sessions.el | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/core/autoload/sessions.el b/core/autoload/sessions.el index b8afd589f..0d018df6b 100644 --- a/core/autoload/sessions.el +++ b/core/autoload/sessions.el @@ -63,18 +63,6 @@ ((error "No session backend to load session with")))) -;; -;;; Command line switch - -;;;###autoload -(defun doom-restore-session-handler (&rest _) - "TODO" - (add-hook 'window-setup-hook #'doom-load-session 100)) - -;;;###autoload -(add-to-list 'command-switch-alist (cons "--restore" #'doom-restore-session-handler)) - - ;; ;;; Commands @@ -140,4 +128,4 @@ (append (if debug (list "--debug-init")) (when (boundp 'chemacs-current-emacs-profile) (list "--with-profile" chemacs-current-emacs-profile)) - (list "--restore"))))) + (list "--eval" "(add-hook 'window-setup-hook #'doom-load-session 100)")))))