emacs/dired: stop dired buffer pollution #1937

This commit is contained in:
Henrik Lissner 2019-10-23 01:33:55 -04:00
parent 5bf735612a
commit 18f20a5313
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -45,11 +45,18 @@ only variant that supports --group-directories-first."
"--group-directories-first")
" ")))))
(define-key! dired-mode-map
;; Kill buffer when quitting dired buffers
[remap quit-window] (λ! (quit-window t))
;; To be consistent with ivy/helm+wgrep integration
"C-c C-e" #'wdired-change-to-wdired-mode))
;; 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
[remap quit-window] (λ! (quit-window t))
;; 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 ".."))))
(use-package! dired-rsync