Disarm doom/cleanup-session's oppressive regime
It killed buffers a little too indiscriminantly.
This commit is contained in:
parent
af37d430fb
commit
b57c2e2264
1 changed files with 1 additions and 2 deletions
|
@ -247,8 +247,7 @@ project."
|
||||||
ALL-P (universal argument), clean them up globally."
|
ALL-P (universal argument), clean them up globally."
|
||||||
(interactive (list current-prefix-arg))
|
(interactive (list current-prefix-arg))
|
||||||
(let ((buffers (doom-buried-buffers (if all-p (buffer-list))))
|
(let ((buffers (doom-buried-buffers (if all-p (buffer-list))))
|
||||||
(n 0)
|
(n 0))
|
||||||
kill-buffer-query-functions)
|
|
||||||
(mapc #'kill-buffer buffers)
|
(mapc #'kill-buffer buffers)
|
||||||
(setq n (+ n (length buffers) (doom/cleanup-processes)))
|
(setq n (+ n (length buffers) (doom/cleanup-processes)))
|
||||||
(dolist (hook doom-cleanup-hook)
|
(dolist (hook doom-cleanup-hook)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue