emacs/dired: stop dired buffer pollution #1937
This commit is contained in:
parent
5bf735612a
commit
18f20a5313
1 changed files with 12 additions and 5 deletions
|
@ -45,11 +45,18 @@ only variant that supports --group-directories-first."
|
||||||
"--group-directories-first")
|
"--group-directories-first")
|
||||||
" ")))))
|
" ")))))
|
||||||
|
|
||||||
(define-key! dired-mode-map
|
;; Don't complain about this command being disabled when we use it
|
||||||
|
(put 'dired-find-alternate-file 'disabled nil)
|
||||||
|
|
||||||
|
(map! :map dired-mode-map
|
||||||
;; Kill buffer when quitting dired buffers
|
;; Kill buffer when quitting dired buffers
|
||||||
[remap quit-window] (λ! (quit-window t))
|
[remap quit-window] (λ! (quit-window t))
|
||||||
;; To be consistent with ivy/helm+wgrep integration
|
;; To be consistent with ivy/helm+wgrep integration
|
||||||
"C-c C-e" #'wdired-change-to-wdired-mode))
|
"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 ".."))))
|
||||||
|
|
||||||
|
|
||||||
(use-package! dired-rsync
|
(use-package! dired-rsync
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue