From fa29a3cf1d55e57af791b22c536575f725eb92e9 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 5 Mar 2021 20:07:32 -0500 Subject: [PATCH] Ensure associated workspace is deleted on server-done too Should catch more corner cases where workspaces are surviving their emacsclient-spawned frames. --- modules/ui/workspaces/config.el | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/ui/workspaces/config.el b/modules/ui/workspaces/config.el index 572edbe8f..5d5198d4e 100644 --- a/modules/ui/workspaces/config.el +++ b/modules/ui/workspaces/config.el @@ -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