Emacs: remove trash function
Alan Pearce alan@alanpearce.eu
Sun, 04 Aug 2019 15:10:41 +0200
1 files changed, 1 insertions(+), 8 deletions(-)
jump to
M emacs/.emacs.d/main.el → emacs/.emacs.d/main.el
@@ -415,14 +415,7 @@ (setq backup-directory-alist `((".*" . ,backup-dir)) backup-by-copying-when-linked t backup-by-copying-when-mismatch t)) -(declare-function system-move-file-to-trash "main" (file)) -(if (eq system-type 'darwin) - (setq delete-by-moving-to-trash t) - (if (and (executable-find "trash") (not (fboundp #'system-move-file-to-trash))) - (defun system-move-file-to-trash (file) - (call-process (executable-find "trash") - nil 0 nil - file)))) +(setq delete-by-moving-to-trash t) (use-package goto-chg :defer 1)