summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-07-29 08:05:48 +0200
committerAlan Pearce2023-07-29 08:06:51 +0200
commit0b70002a2689500b4d193c5b02094bdc6b7d0222 (patch)
treef750fcc06abd347a564bc139b516c8273d627975
parent23ec761bd80dbba57d469f122a30ccd7f24b19a7 (diff)
downloadnixfiles-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
-rw-r--r--user/emacs/init.el12
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)