From 66bb65061130d5acf172cc3f59a40d4b19d1f316 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Tue, 6 Aug 2024 10:52:19 -0400 Subject: [PATCH] Disable backups and lockfiles. --- init.el | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/init.el b/init.el index 64ac17b..61ee5df 100644 --- a/init.el +++ b/init.el @@ -64,12 +64,10 @@ ;;; Backup files -;; Don't generate backups or lockfiles. While auto-save maintains a copy so long -;; as a buffer is unsaved, backups create copies once, when the file is first -;; written, and never again until it is killed and reopened. This is better -;; suited to version control, and I don't want world-readable copies of -;; potentially sensitive material floating around our filesystem. +;; Avoid generating backups or lockfiles to prevent creating world-readable +;; copies of files. (setq create-lockfiles nil) +(setq make-backup-files nil) (setq backup-directory-alist `(("." . ,(expand-file-name "backup" user-emacs-directory)))) @@ -80,7 +78,6 @@ (setq version-control t) ; Use version numbers for backup files (setq kept-new-versions 5) (setq kept-old-versions 5) -(setq make-backup-files t) (setq vc-make-backup-files nil) ; Do not backup version controlled files ;;; Auto save