feat(macos): move files/folders to trash instead of deleting them on macOS

Use the osx-trash package to enable emacs' built-in trash support, which
seems to explicitly lack macOS support.
This commit is contained in:
2020-09-24 00:39:00 +01:00
parent 5d5bc8a128
commit bda82a9c77
3 changed files with 12 additions and 1 deletions

View File

@@ -51,7 +51,9 @@
(auto-fill-mode))
:config
(require 'magit))
(require 'magit)
(when (fboundp 'system-move-file-to-trash)
(setq magit-delete-by-moving-to-trash t)))
(use-package transient
:defer t