Switch to fallback buffer on kill-all-buffers
This commit is contained in:
parent
749553993d
commit
0ad96a4100
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue