Emacs: disable file backups I can't remember the last time I needed to restore a file from here
Alan Pearce alan@alanpearce.eu
Sat, 29 Jul 2023 08:05:48 +0200
1 files changed, 0 insertions(+), 12 deletions(-)
jump to
M user/emacs/init.el → user/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)