Simplify session persistence
This commit is contained in:
parent
5c741cb65f
commit
6672ee5cf5
1 changed files with 1 additions and 13 deletions
|
@ -63,18 +63,6 @@
|
||||||
((error "No session backend to load session with"))))
|
((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
|
;;; Commands
|
||||||
|
|
||||||
|
@ -140,4 +128,4 @@
|
||||||
(append (if debug (list "--debug-init"))
|
(append (if debug (list "--debug-init"))
|
||||||
(when (boundp 'chemacs-current-emacs-profile)
|
(when (boundp 'chemacs-current-emacs-profile)
|
||||||
(list "--with-profile" chemacs-current-emacs-profile))
|
(list "--with-profile" chemacs-current-emacs-profile))
|
||||||
(list "--restore")))))
|
(list "--eval" "(add-hook 'window-setup-hook #'doom-load-session 100)")))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue