mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Switch to fallback buffer on kill-all-buffers
This commit is contained in:
@ -257,6 +257,8 @@ If PROJECT-P, kill all buffers that belong to the current project."
|
||||
(let ((buffers (if project-p (doom-project-buffer-list) (doom-buffer-list))))
|
||||
(mapc #'doom-kill-buffer-and-windows buffers)
|
||||
(when (called-interactively-p 'interactive)
|
||||
(unless (doom-real-buffer-p)
|
||||
(switch-to-buffer (doom-fallback-buffer)))
|
||||
(message "Killed %s buffers" (length buffers)))))
|
||||
|
||||
;;;###autoload
|
||||
|
Reference in New Issue
Block a user