From e6b34380d6cee035796cd48a484386a03685cf0b Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Sat, 12 Nov 2022 17:38:40 +0000 Subject: [PATCH] feat: improvements with lock and backup files Backup files have been relocated to the system temporary files directory. To recover backups from there enter the associated file and run M-x recover-file or :recover-file. Lock files have been disabled - uses for them are few and far between Both these changes were done to maintain cleanliness of directories and git-friendliness --- lisp/editor.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/editor.el b/lisp/editor.el index 8236478..32575c1 100644 --- a/lisp/editor.el +++ b/lisp/editor.el @@ -33,8 +33,13 @@ ;; Disable the creation of files ending with '~' (backup files) (setq make-backup-files nil) -;; Disable the creation of files with '#' (lock files) +;; Move files with '#' to system tmp directory +(setq auto-save-default nil) (setq create-lockfiles nil) +(setq backup-directory-alist + `((".*" . ,temporary-file-directory))) +(setq auto-save-file-name-transforms + `((".*" ,temporary-file-directory t))) ;;; Themes ;; Customize doom-themes