Disarm doom/cleanup-session's oppressive regime

It killed buffers a little too indiscriminantly.
This commit is contained in:
Henrik Lissner 2018-01-08 19:36:00 -05:00
parent af37d430fb
commit b57c2e2264
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -247,8 +247,7 @@ project."
ALL-P (universal argument), clean them up globally."
(interactive (list current-prefix-arg))
(let ((buffers (doom-buried-buffers (if all-p (buffer-list))))
(n 0)
kill-buffer-query-functions)
(n 0))
(mapc #'kill-buffer buffers)
(setq n (+ n (length buffers) (doom/cleanup-processes)))
(dolist (hook doom-cleanup-hook)