summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--emacs/.emacs.d/main.el9
1 files changed, 1 insertions, 8 deletions
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)