mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Minor refactor of feature/workspaces
Improve error handling and update docstrings+comments
This commit is contained in:
@ -26,10 +26,11 @@ new project directory.")
|
||||
"The basename of the file to store single workspace perspectives. Will be
|
||||
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))
|
||||
(map-put command-switch-alist '"--restore" #'+workspaces-restore-last-session)
|
||||
|
||||
(map-put command-switch-alist "--restore" #'+workspaces-restore-last-session)
|
||||
|
||||
;;
|
||||
;; Plugins
|
||||
|
Reference in New Issue
Block a user