From 358d7af9acc13dc475a7afc3c8b16bec1759c9c2 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 22 Mar 2018 06:31:09 -0400 Subject: [PATCH] doom/kill-all-buffers: reduce redundancy --- core/autoload/buffers.el | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/core/autoload/buffers.el b/core/autoload/buffers.el index 196481512..d4d31e3f8 100644 --- a/core/autoload/buffers.el +++ b/core/autoload/buffers.el @@ -202,13 +202,9 @@ If DONT-SAVE, don't prompt to save modified buffers (discarding their changes)." If PROJECT-P (universal argument), kill only buffers that belong to the current project." (interactive "P") - (let ((buffers (if project-p (doom-project-buffer-list) (doom-buffer-list))) - (ignore-window-parameters t)) - (delete-other-windows) - (switch-to-buffer (doom-fallback-buffer)) - (let (kill-buffer-query-functions) - (message "Killed %s buffers" - (length (delq nil (mapcar #'kill-buffer buffers))))))) + (delete-other-windows) + (switch-to-buffer (doom-fallback-buffer)) + (doom/cleanup-session)) ;;;###autoload (defun doom/kill-other-buffers (&optional project-p)