- #Where is mac trash folder located how to#
- #Where is mac trash folder located install#
- #Where is mac trash folder located archive#
- #Where is mac trash folder located full#
#Where is mac trash folder located how to#
#Where is mac trash folder located archive#
#Where is mac trash folder located install#
When using Homebrew, install it using \"brew install trash \"." "Use \"trash \" to move FILE to the system trash. If you use Homebrew you can brew install trash for a command-line program to trash files and directories using OSX conventions. If you don’t need “Put Back” feature, these lines should suffice to configure deletion of files to Trash: (setq delete-by-moving-to-trash t) This setting will prevent Emacs from trashing old desktop lock files (if you use DeskTop Mode) and backup files (with names like `#filename#’), as well as any files in /tmp (including the server file, which gets trashed on every emacs restart if you use server.el). (setq system-trash-exclude-paths '( "/tmp")) My trash-exclusion settings are as follows: (setq system-trash-exclude-matches '( "#+#$" ".*~$" " \\.emacs \\.desktop.*")) If you do not set this, emacs will fill your trash directory with countless backup files and other temp files.
If you do not use GNOME, you can install trash-cli and replace ‘gvfs-trash’ with `trash.’Īfter loading this code, use M-x customize-group trash to specify certain files that should skip the system trash. Note that the following code requires the command `gvfs-trash,’ included with GNOME. They prevent some functions that normally delete directories recursively from also trashing them recursively. This means that files deleted in Emacs will show up in the GNOME/KDE trash folder.Īt the bottom of the file are two pieces of advice. The following code will configure Emacs to use the trash specification, which is compatible with GNOME and KDE.
#Where is mac trash folder located full#
If you want full Freedesktop trash support including per-mountpoint trashcans, as well as control over what gets sent to the trash and what doesn’t, see below, under Earlier Emacs. However, Emacs only uses the trash can in your home directory, and it will trash every file it deletes, including a great quantity of temp and backup files. Using the trash specification Current Emacs Deleted files and directories will then be sent to the Recycle Bin on Windows, and to ‘trash-directory’ on other systems. Set ‘delete-by-moving-to-trash’ non-nil to use this.