Move undo-tree history backups to custom directory
This commit is contained in:
parent
c27c133f0f
commit
2f6f2ebfa4
6
init.el
6
init.el
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user