Make +workspaces-load-session replace current

It should not merge with the current session.
This commit is contained in:
Henrik Lissner 2018-06-19 14:53:45 +02:00
parent 8cb36afa21
commit d979c46ea2
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -119,6 +119,7 @@ Returns t if successful, nil otherwise."
(defun +workspace-load-session (&optional name)
"Replace current session with the entire session named NAME. If NAME is nil,
use `persp-auto-save-fname'."
(mapc #'+workspace-delete (+workspace-list-names))
(persp-load-state-from-file
(expand-file-name (or name persp-auto-save-fname) persp-save-dir)))