From 6b4c70d3133124d2fcaea4da7b0d6a0fea956a21 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 4 Aug 2019 15:10:41 +0200 Subject: Emacs: remove trash function --- emacs/.emacs.d/main.el | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'emacs/.emacs.d/main.el') diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index ffeba29..0374904 100644 --- a/emacs/.emacs.d/main.el +++ b/emacs/.emacs.d/main.el @@ -415,14 +415,7 @@ With two prefix arguments, write out the day and month name." 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) -- cgit 1.4.1