Move --restore handler to autoload/sessions

This commit is contained in:
Henrik Lissner 2019-10-07 12:56:53 -04:00
parent de223e7398
commit fa051797f2
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 6 additions and 3 deletions

View file

@ -65,6 +65,12 @@
"TODO"
(add-hook 'window-setup-hook #'doom-load-session 'append))
;;;###autoload
(when (and command-line-args-left
(not noninteractive))
(add-to-list 'command-switch-alist
(cons "--restore" #'doom-restore-session-handler)))
;;
;;; Commands