Install undo-tree 0.7.1 from emacs-straight/undo-tree

I re-enable history persistence, now that it has been fixed.

Also, I install it from the emacs-straight/undo-tree mirror, which is
fast and reliable.

Closes #2339, #2334
This commit is contained in:
Henrik Lissner 2020-01-09 03:04:50 -05:00
parent 67d9ef64f3
commit 15f2245b10
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 5 additions and 6 deletions

View file

@ -527,7 +527,7 @@ files, so we replace calls to `pp' with the much faster `prin1'."
:after-call doom-switch-buffer-hook after-find-file
:config
(setq undo-tree-visualizer-diff t
undo-tree-auto-save-history nil
undo-tree-auto-save-history t
;; Increase undo-limits by a factor of ten to avoid emacs prematurely
;; truncating the undo history and corrupting the tree. See
;; https://github.com/syl20bnr/spacemacs/issues/12110
@ -558,7 +558,9 @@ files, so we replace calls to `pp' with the much faster `prin1'."
(stringp (car item))
(setcar item (substring-no-properties (car item))))))
;; Undo-tree is too chatty about saving its history files.
;; Undo-tree is too chatty about saving its history files. This doesn't
;; totally suppress it logging to *Messages*, it only stops it from appearing
;; in the echo-area.
(advice-add #'undo-tree-save-history :around #'doom-shut-up-a)
(global-undo-tree-mode +1))