From 178c241176cbc30cb588b0713ad4ca7f950e5261 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 12 Mar 2018 11:14:08 +0100 Subject: [PATCH] Emacs: customized backup behavior --- emacs/emacs.el | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/emacs/emacs.el b/emacs/emacs.el index bda9de7..f2e4090 100644 --- a/emacs/emacs.el +++ b/emacs/emacs.el @@ -59,7 +59,15 @@ backup-directory-alist `(("." . ,user-temporary-file-directory) (tramp-file-name-regexp nil)) 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 (prefer-coding-system 'utf-8-unix)