(setq trash-directory "~/.Trash") and
(setq delete-by-moving-to-trash t) in
.emacs to be able to have files moved to
d and then
dired-mode. (This is in macOS.)
But if I want to delete a file (= move to the trash) that already exists in ~/.Trash, then I get error
file-already-exists: File already exists: /Users/<myuser>/.Trash/<myfile>.
How can I specify in
.emacs to (force-)overwrite files in ~/.Trash if they already exist in ~/.Trash?
Alternatively, how can I get Dired
x to create a
~2 etc. version in Trash, every time a new file of the same base-name is moved there?