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
This commit is contained in:
Muhammad Nauman Raza 2022-11-12 17:38:40 +00:00
parent 0cce619733
commit e6b34380d6
No known key found for this signature in database
GPG key ID: A9A36C429C9CAE31

View file

@ -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