all repos — nixfiles @ 6b4c70d3133124d2fcaea4da7b0d6a0fea956a21

System and user configuration, managed by nix and home-manager

Emacs: remove trash function

Alan Pearce
commit

6b4c70d3133124d2fcaea4da7b0d6a0fea956a21

parent

f718d90b632a79ca129e57ad605160291dee7969

1 file changed, 1 insertion(+), 8 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.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)