Emacs: Don't ask about dired deletes when using trash
Alan Pearce alan@alanpearce.uk
Thu, 27 Apr 2017 11:00:45 +0200
1 files changed, 3 insertions(+), 1 deletions(-)
jump to
M emacs/.emacs.d/init.org → emacs/.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")))