There are a few workflows where having multiple buffers (e.g. side-by-side) is preferrable, however, `dired-find-alternate-file` kills the old buffer indiscriminately.
This commit is contained in:
parent
311bdf100e
commit
b0106e2ac7
2 changed files with 11 additions and 7 deletions
8
modules/emacs/dired/autoload.el
Normal file
8
modules/emacs/dired/autoload.el
Normal file
|
@ -0,0 +1,8 @@
|
|||
;;; emacs/dired/autoload.el -*- lexical-binding: t; -*-
|
||||
|
||||
;;;###autoload
|
||||
(defun +dired/quit-all ()
|
||||
"Kill all `dired-mode' buffers."
|
||||
(interactive)
|
||||
(mapc #'kill-buffer (doom-buffers-in-mode 'dired-mode))
|
||||
(message "Killed all dired buffers"))
|
Loading…
Add table
Add a link
Reference in a new issue