Load custom-file & move undo-tree config to core-editor

This commit is contained in:
Henrik Lissner 2017-05-15 11:18:26 +02:00
parent b613fb773b
commit be4be57a1a
2 changed files with 10 additions and 4 deletions

View file

@ -57,6 +57,11 @@ modes are active and the buffer is read-only.")
savehist-additional-variables '(kill-ring search-ring regexp-search-ring))
(savehist-mode 1)
;; Branching & persistent undo
(require 'undo-tree)
(setq undo-tree-auto-save-history t
undo-tree-history-directory-alist (list (cons "." (concat doom-cache-dir "undo-tree-hist/"))))
;; Keep track of recently opened files
(require 'recentf)
(setq recentf-save-file (concat doom-cache-dir "recentf")