Skip to content

emacsorphanage/osx-trash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

osx-trash.el

License GPL 3 MELPA Stable MELPA

Make delete-by-moving-to-trash do what you expect it to do on OS X.

For whatever reason GNU Emacs doesn’t support the system trash can on OS X. Instead it’ll move files into the freedesktop.org trash can, which is, uhm, not particularly useful behaviour on OS X.

This package makes Emacs do the right thing(TM) and move files to the real OS X trash can.

Note: If you’re using the Emacs Mac Port, or if you’re not using OS X at all, you’ll not need this package!

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)

By default this package uses a bundled Applescript helper, but that is slow, so you should customize osx-trash-command to use a faster external command.

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/.