Use different function for :cleanup
This commit is contained in:
parent
a7dc91e7bf
commit
510e7116c8
3 changed files with 14 additions and 3 deletions
|
@ -357,6 +357,17 @@ the workspace and move to the next."
|
|||
((> (length (+workspace-list)) 1)
|
||||
(+workspace/delete current-persp-name))))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +workspace/cleanup ()
|
||||
"Clean up orphaned buffers and processes."
|
||||
(interactive)
|
||||
(let ((buffers (cl-remove-if #'persp--buffer-in-persps (buffer-list)))
|
||||
(n (doom-kill-process-buffers)))
|
||||
(mapc #'kill-buffer buffers)
|
||||
(when (called-interactively-p 'any)
|
||||
(message "Cleaned up %d buffers and %d processes"
|
||||
(length buffers) n))))
|
||||
|
||||
|
||||
;;
|
||||
;; Tabs display in minibuffer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue