all repos — nixfiles @ 8c6c7cdc4c5397d9704b168e93021248f57fdf77

System and user configuration, managed by nix and home-manager

Emacs: Use system trash on OSX
Alan Pearce alan@alanpearce.co.uk
Thu, 10 Jul 2014 20:40:56 +0100
commit

8c6c7cdc4c5397d9704b168e93021248f57fdf77

parent

ed18ff39c95c842e8ea465610f5d06e3c5f700be

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -286,6 +286,9 @@ (prefer-coding-system 'utf-8-auto-unix) (set-default-coding-systems 'utf-8-auto-unix)
 (setq-default buffer-file-coding-system 'utf-8-auto-unix)
 (setq create-lockfiles nil)
+(if (eq system-type 'darwin)
+    (setq delete-by-moving-to-trash t))
+
 (req-package autorevert
   :init (progn
           (global-auto-revert-mode 1)