mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-31 14:43:40 -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:
@@ -49,14 +49,10 @@ only variant that supports --group-directories-first."
|
||||
(put 'dired-find-alternate-file 'disabled nil)
|
||||
|
||||
(map! :map dired-mode-map
|
||||
;; Kill buffer when quitting dired buffers
|
||||
[remap quit-window] (λ! (quit-window t))
|
||||
;; Kill all dired buffers on q
|
||||
:ng "q" #'+dired/quit-all
|
||||
;; To be consistent with ivy/helm+wgrep integration
|
||||
"C-c C-e" #'wdired-change-to-wdired-mode
|
||||
;; Stop dired from creating new buffers when we enter a new directory or
|
||||
;; travel up the tree
|
||||
:n "RET" #'dired-find-alternate-file
|
||||
:ng "^" (λ! (find-alternate-file ".."))))
|
||||
"C-c C-e" #'wdired-change-to-wdired-mode))
|
||||
|
||||
|
||||
(use-package! dired-rsync
|
||||
|
Reference in New Issue
Block a user