Move --restore handler to autoload/sessions
This commit is contained in:
parent
de223e7398
commit
fa051797f2
2 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue