mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Add doom-cleanup-hook to doom/cleanup-buffers
This commit is contained in:
@ -308,6 +308,7 @@ project."
|
|||||||
(defun doom/cleanup-buffers (&optional all-p)
|
(defun doom/cleanup-buffers (&optional all-p)
|
||||||
"Clean up buried and inactive process buffers in the current workspace."
|
"Clean up buried and inactive process buffers in the current workspace."
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
|
(run-hooks 'doom-cleanup-hook)
|
||||||
(let ((buffers (doom-buried-buffers (if all-p (buffer-list))))
|
(let ((buffers (doom-buried-buffers (if all-p (buffer-list))))
|
||||||
(n 0))
|
(n 0))
|
||||||
(mapc #'kill-buffer buffers)
|
(mapc #'kill-buffer buffers)
|
||||||
|
Reference in New Issue
Block a user