1

Move undo-tree history backups to custom directory

This commit is contained in:
Jessie Hildebrandt 2022-06-07 21:21:28 -04:00
parent c27c133f0f
commit 2f6f2ebfa4

View File

@ -86,7 +86,7 @@
) )
;; Configure user directory and file locations. ;; Configure user directory and file locations.
(defconst custom-backup-dir (concat user-emacs-directory "backups") "Preferred backup directory.") (defconst custom-backup-dir (concat user-emacs-directory "backups/") "Preferred backup directory.")
(setq-default (setq-default
custom-file (concat user-emacs-directory "custom.el") ; Use separate custom-vars file custom-file (concat user-emacs-directory "custom.el") ; Use separate custom-vars file
backup-directory-alist `((".*" . ,custom-backup-dir)) ; Set backup file directory backup-directory-alist `((".*" . ,custom-backup-dir)) ; Set backup file directory
@ -769,7 +769,9 @@
:demand :demand
t t
:config :config
(global-undo-tree-mode)) (global-undo-tree-mode)
:custom
(undo-tree-history-directory-alist `(("." . ,custom-backup-dir))))
;;==================== ;;====================
;; Diff-HL (VCS Diff Highlighting) ;; Diff-HL (VCS Diff Highlighting)