Add +workspace/load-last-session

And fix the load last session button on dashboard.
This commit is contained in:
Henrik Lissner 2018-07-07 11:41:24 +02:00
parent cf55049a17
commit 1a068f82f1
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 9 additions and 3 deletions

View file

@ -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