Add +workspace/load-last-session
And fix the load last session button on dashboard.
This commit is contained in:
parent
cf55049a17
commit
1a068f82f1
3 changed files with 9 additions and 3 deletions
|
@ -248,6 +248,12 @@ session."
|
|||
(+workspace-message (format "'%s' workspace loaded" name) 'success))
|
||||
'(error (+workspace-error (cadr ex) t))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +workspace/load-last-session ()
|
||||
"Restore last session and switch to it."
|
||||
(interactive)
|
||||
(+workspace/load-session))
|
||||
|
||||
;;;###autoload
|
||||
(defun +workspace/save-session (&optional name)
|
||||
"Save the current session. If called with C-u, prompt you for the name to save
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue