Fixed undo-tree-auto-save-history

Previous commit with auto-save did not create the directory so it broke undo.
This commit is contained in:
Rich Alesi 2014-12-12 21:54:36 -07:00 committed by syl20bnr
parent e2634674a9
commit c465eeb9fc

View file

@ -2079,8 +2079,11 @@ determine the state to enable when escaping from the insert state.")
:idle (global-undo-tree-mode)
:defer t
:init
(setq undo-tree-history-directory-alist
(setq undo-tree-auto-save-history t
undo-tree-history-directory-alist
`(("." . ,(concat spacemacs-cache-directory "undo"))))
(unless (file-exists-p (concat spacemacs-cache-directory "undo"))
(make-directory (concat spacemacs-cache-directory "undo")))
(setq undo-tree-visualizer-timestamps t)
(setq undo-tree-visualizer-diff t)
:config