all repos — archive/dotfiles @ 6cf0843ec6ad3674d6d76b2709282bae0e69fd75

Superseded by nixfiles

Emacs: Don't ask about dired deletes when using trash
Alan Pearce alan@alanpearce.uk
Thu, 27 Apr 2017 11:00:45 +0200
commit

6cf0843ec6ad3674d6d76b2709282bae0e69fd75

parent

1ac542cf9b0276d5c833658442baaa46502a1585

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M emacs/.emacs.d/init.orgemacs/.emacs.d/init.org
@@ -1020,7 +1020,9 @@ (bind-key "<return>" #'dired-find-file dired-mode-map)             (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")))