From 84f8169de30885d2165d531d248196c3ba9c7a3d Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 15 Jul 2018 00:47:07 -0700 Subject: [PATCH] Fix some settings related to versioning backup files --- emacs/.emacs.d/init.el | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 4503849..c8342ef 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -71,12 +71,20 @@ (add-hook 'package-menu-mode-hook 'hl-line-mode) -(setq backup-directory-alist `((".*" . ,(oni:data-location "backup-files/")))) +(setq backup-directory-alist + `((".*" . ,(oni:data-location "backup-files/")))) (add-to-list 'auto-save-file-name-transforms `(".*" ,(oni:data-location "auto-save-files/") t) :append) -(setq auto-save-list-file-prefix (oni:data-location "auto-save-list/.saves-")) +(setq auto-save-list-file-prefix + (oni:data-location "auto-save-list/.saves-")) + +(setq delete-old-versions t) +(setq kept-new-versions 20) +(setq kept-old-versions 20) +(setq vc-make-backup-files t) +(setq version-control t) (global-set-key (kbd "C-M-SPC") 'er/expand-region) (global-set-key (kbd "M-+") 'mc/mark-next-like-this)