mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-23 14:03:44 -05:00
Use different function for :cleanup
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user