parent
a207a8b703
commit
f1e793405d
1 changed files with 6 additions and 3 deletions
|
@ -45,6 +45,9 @@
|
||||||
(setq delete-by-moving-to-trash t)
|
(setq delete-by-moving-to-trash t)
|
||||||
|
|
||||||
;; Lazy load `osx-trash'
|
;; Lazy load `osx-trash'
|
||||||
(and IS-MAC
|
(when (not (fboundp 'system-move-file-to-trash))
|
||||||
(not (fboundp 'system-move-file-to-trash))
|
(defun system-move-file-to-trash (file)
|
||||||
(defalias #'system-move-file-to-trash #'osx-trash-move-file-to-trash)))
|
"Move FILE to trash."
|
||||||
|
(when (and (not IS-LINUX)
|
||||||
|
(not (file-remote-p default-directory)))
|
||||||
|
(osx-trash-move-file-to-trash file)))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue