summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2024-05-22 18:25:23 +0200
committerAlan Pearce2024-05-22 18:25:23 +0200
commitc25b570e33456318f7e0454766a046abc843b75d (patch)
tree99e7323c6c053a0ec5a980f3cf44e8dfda44fda4 /user/emacs
parent12c5c317e243552f3c2fca66bef62bd28a82373a (diff)
downloadnixfiles-c25b570e33456318f7e0454766a046abc843b75d.tar.lz
nixfiles-c25b570e33456318f7e0454766a046abc843b75d.tar.zst
nixfiles-c25b570e33456318f7e0454766a046abc843b75d.zip
emacs: make dired re-use buffers
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 998b53bd..ad5f8cbd 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -677,6 +677,7 @@ _C-k_: prev  _u_pper              _=_: upper/lower       _s_mart resolve
 (setq dired-dwim-target t
       dired-recursive-copies 'top
       dired-listing-switches "-alh --group-directories-first"
+      dired-kill-when-opening-new-dired-buffer t
       dired-recursive-deletes (if delete-by-moving-to-trash
                                   'always
                                 'top))