https://github.com/lunaryorn/osx-trash.el.git
git clone 'git://github.com/lunaryorn/osx-trash.el.git'
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.
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.
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/.