undo-tree-auto-save-history = t

Persistent undo history is great. I'm hoping that, with
undo-tree-enable-undo-in-region disabled, we can enable this feature
again safely.

Time will tell.
This commit is contained in:
Henrik Lissner 2018-08-03 18:25:24 +02:00
parent 417736ecf6
commit b12944fddb
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -212,13 +212,13 @@ savehist file."
(def-package! undo-tree (def-package! undo-tree
:after-call (doom-exit-buffer-hook after-find-file) :after-call (doom-exit-buffer-hook after-find-file)
:config :config
;; persistent undo history and undo-in-region is known to cause undo history (setq undo-tree-auto-save-history t
;; corruption, which can be very destructive! Disabling it deters the error, ;; undo-in-region is known to cause undo history corruption, which can
;; but does not fix it entirely! ;; be very destructive! Disabling it deters the error, but does not fix
(setq undo-tree-auto-save-history nil ;; it entirely!
undo-tree-enable-undo-in-region nil undo-tree-enable-undo-in-region nil
undo-tree-history-directory-alist undo-tree-history-directory-alist
(list (cons "." (concat doom-cache-dir "undo-tree-hist/")))) `(("." . ,(concat doom-cache-dir "undo-tree-hist/"))))
(global-undo-tree-mode +1)) (global-undo-tree-mode +1))