Emacs: customized backup behavior

This commit is contained in:
Marcel Kapfer 2018-03-12 11:14:08 +01:00
parent 93475a5bc5
commit 178c241176

View file

@ -59,7 +59,15 @@
backup-directory-alist `(("." . ,user-temporary-file-directory) backup-directory-alist `(("." . ,user-temporary-file-directory)
(tramp-file-name-regexp nil)) (tramp-file-name-regexp nil))
auto-save-list-file-prefix (concat user-temporary-file-directory ".auto-saves-") auto-save-list-file-prefix (concat user-temporary-file-directory ".auto-saves-")
auto-save-file-name-transforms `((".*" ,user-temporary-file-directory t))) auto-save-file-name-transforms `((".*" ,user-temporary-file-directory t))
;; version numbers for backup files
version-control t
;; delete excess backup versions
delete-old-versions t
;; amount of new versions to keep
kept-new-versions 20
;; amount of old versions to keep
kept-old-versions 5)
;; set default input encoding ;; set default input encoding
(prefer-coding-system 'utf-8-unix) (prefer-coding-system 'utf-8-unix)