osx-trash

https://github.com/lunaryorn/osx-trash.el.git

git clone 'git://github.com/lunaryorn/osx-trash.el.git'
5

osx-trash.el

License GPL 3 MELPA Stable MELPA

Provide OS X system trash support for GNU Emacs 24. In other words, makes delete-by-moving-to-trash do what you expect it to do.

Setup

Install this package from MELPA or MELPA Stable, and add the following to your init file:

(when (eq system-type 'darwin)
  (osx-trash-setup))
(setq delete-by-moving-to-trash t)

Optionally, install trash with brew install trash. Otherwise this package falls back to a little AppleScript helper, which works just as well, but is a little slower.

License

osx-trash is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

osx-trash is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.