Ensure associated workspace is deleted on server-done too

Should catch more corner cases where workspaces are surviving their
emacsclient-spawned frames.
This commit is contained in:
Henrik Lissner 2021-03-05 20:07:32 -05:00
parent d9dac055a6
commit fa29a3cf1d

View file

@ -186,6 +186,7 @@ stored in `persp-save-dir'.")
persp-interactive-init-frame-behaviour-override #'+workspaces-associate-frame-fn
persp-emacsclient-init-frame-behaviour-override #'+workspaces-associate-frame-fn)
(add-hook 'delete-frame-functions #'+workspaces-delete-associated-workspace-h)
(add-hook 'server-done-hook #'+workspaces-delete-associated-workspace-h)
;; per-project workspaces, but reuse current workspace if empty
(setq projectile-switch-project-action #'+workspaces-set-project-action-fn