diff options
author | Alan Pearce | 2023-07-29 08:05:48 +0200 |
---|---|---|
committer | Alan Pearce | 2023-07-29 08:06:51 +0200 |
commit | 0b70002a2689500b4d193c5b02094bdc6b7d0222 (patch) | |
tree | f750fcc06abd347a564bc139b516c8273d627975 /user | |
parent | 23ec761bd80dbba57d469f122a30ccd7f24b19a7 (diff) | |
download | nixfiles-0b70002a2689500b4d193c5b02094bdc6b7d0222.tar.lz nixfiles-0b70002a2689500b4d193c5b02094bdc6b7d0222.tar.zst nixfiles-0b70002a2689500b4d193c5b02094bdc6b7d0222.zip |
Emacs: disable file backups
I can't remember the last time I needed to restore a file from here
Diffstat (limited to 'user')
-rw-r--r-- | user/emacs/init.el | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el index 2b7e9ce7..f21325a3 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -599,18 +599,6 @@ _p_rev _u_pper _=_: upper/lower _r_esolve 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) |