mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
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"))
|
Reference in New Issue
Block a user