lang/org: clean up temp org-agenda buffers
Now auto-kills temporary agenda buffers, so long as they weren't already opened by the user and doesn't exist in any other workspace.
This commit is contained in:
parent
423a38c758
commit
f6a182d69c
1 changed files with 2 additions and 2 deletions
|
@ -462,9 +462,9 @@ eldoc string."
|
|||
(add-hook! 'org-agenda-finalize-hook
|
||||
(defun +org-exclude-agenda-buffers-from-workspace-h ()
|
||||
"Prevent temporarily-opened agenda buffers from being associated with the
|
||||
current workspace."
|
||||
current workspace (and clean them up)."
|
||||
(when (and org-agenda-new-buffers (bound-and-true-p persp-mode))
|
||||
(let (persp-autokill-buffer-on-remove)
|
||||
(let ((persp-autokill-buffer-on-remove t))
|
||||
(persp-remove-buffer org-agenda-new-buffers
|
||||
(get-current-persp)
|
||||
nil)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue