summary refs log tree commit diff stats
path: root/emacs/.emacs.d
diff options
context:
space:
mode:
authorAlan Pearce2017-04-27 11:00:45 +0200
committerAlan Pearce2017-04-27 11:00:45 +0200
commit6cf0843ec6ad3674d6d76b2709282bae0e69fd75 (patch)
tree52d2f4b588b2d4fdba9a18a593f9765babb681b1 /emacs/.emacs.d
parent1ac542cf9b0276d5c833658442baaa46502a1585 (diff)
downloadnixfiles-6cf0843ec6ad3674d6d76b2709282bae0e69fd75.tar.lz
nixfiles-6cf0843ec6ad3674d6d76b2709282bae0e69fd75.tar.zst
nixfiles-6cf0843ec6ad3674d6d76b2709282bae0e69fd75.zip
Emacs: Don't ask about dired deletes when using trash
Diffstat (limited to 'emacs/.emacs.d')
-rw-r--r--emacs/.emacs.d/init.org4
1 files changed, 3 insertions, 1 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index e2e06a6d..5bb1c2ac 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -1020,7 +1020,9 @@ copying/moving files between them.
             (bind-key "^" (lambda () (interactive) (find-alternate-file "..")) dired-mode-map)
             (setq dired-dwim-target t
                   dired-recursive-copies 'top
-                  dired-recursive-deletes 'top
+                  dired-recursive-deletes (if delete-by-moving-to-trash
+                                              'always
+                                              'top)
                   dired-listing-switches "-alh")
             (when (and (eq system-type 'darwin) (executable-find "gls"))
               (setq insert-directory-program (executable-find "gls")))