all repos — nixfiles @ 0b70002a2689500b4d193c5b02094bdc6b7d0222

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

Emacs: disable file backups I can't remember the last time I needed to restore a file from here

Alan Pearce
commit

0b70002a2689500b4d193c5b02094bdc6b7d0222

parent

23ec761bd80dbba57d469f122a30ccd7f24b19a7

1 file changed, 0 insertions(+), 12 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -599,18 +599,6 @@ (setq auto-revert-verbose nil
auto-revert-use-notify t) (global-auto-revert-mode t))) -;;;; Backups - -;; I like to keep my backups out of regular folders. I tell emacs to use -;; a subfolder of its configuration directory for that. Also, use the -;; trash for deleting on OS X. -(let ((backup-dir (expand-file-name "emacs" (or (getenv "XDG_DATA_HOME") - "~/.local/share")))) - (unless (file-directory-p backup-dir) - (make-directory backup-dir)) - (setq backup-directory-alist `((".*" . ,backup-dir)) - backup-by-copying-when-linked t - backup-by-copying-when-mismatch t)) (setq delete-by-moving-to-trash t)