diff options
author | Alan Pearce | 2019-08-04 15:10:41 +0200 |
---|---|---|
committer | Alan Pearce | 2019-08-04 15:10:41 +0200 |
commit | 6b4c70d3133124d2fcaea4da7b0d6a0fea956a21 (patch) | |
tree | 9ab260d6c85f3402e8d07cecad00a398e0f7128c | |
parent | f718d90b632a79ca129e57ad605160291dee7969 (diff) | |
download | dotfiles-6b4c70d3133124d2fcaea4da7b0d6a0fea956a21.tar.lz dotfiles-6b4c70d3133124d2fcaea4da7b0d6a0fea956a21.tar.zst dotfiles-6b4c70d3133124d2fcaea4da7b0d6a0fea956a21.zip |
Emacs: remove trash function
-rw-r--r-- | emacs/.emacs.d/main.el | 9 |
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) |