Make +workspaces-load-session replace current
It should not merge with the current session.
This commit is contained in:
parent
8cb36afa21
commit
d979c46ea2
1 changed files with 1 additions and 0 deletions
|
@ -119,6 +119,7 @@ Returns t if successful, nil otherwise."
|
||||||
(defun +workspace-load-session (&optional name)
|
(defun +workspace-load-session (&optional name)
|
||||||
"Replace current session with the entire session named NAME. If NAME is nil,
|
"Replace current session with the entire session named NAME. If NAME is nil,
|
||||||
use `persp-auto-save-fname'."
|
use `persp-auto-save-fname'."
|
||||||
|
(mapc #'+workspace-delete (+workspace-list-names))
|
||||||
(persp-load-state-from-file
|
(persp-load-state-from-file
|
||||||
(expand-file-name (or name persp-auto-save-fname) persp-save-dir)))
|
(expand-file-name (or name persp-auto-save-fname) persp-save-dir)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue