mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
@ -186,6 +186,7 @@ stored in `persp-save-dir'.")
|
|||||||
persp-interactive-init-frame-behaviour-override #'+workspaces-associate-frame-fn
|
persp-interactive-init-frame-behaviour-override #'+workspaces-associate-frame-fn
|
||||||
persp-emacsclient-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 '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
|
;; per-project workspaces, but reuse current workspace if empty
|
||||||
(setq projectile-switch-project-action #'+workspaces-set-project-action-fn
|
(setq projectile-switch-project-action #'+workspaces-set-project-action-fn
|
||||||
|
Reference in New Issue
Block a user