Disable persistent-undo; causes undo corruption
A known issue with undo-tree causes an "unrecognized entry in undo list undo-tree-canary" error, which can result in the loss of work.
This commit is contained in:
parent
56d7c78e00
commit
e3eadf596d
1 changed files with 4 additions and 2 deletions
|
@ -201,11 +201,13 @@ fundamental-mode) for performance sake."
|
|||
(sp-local-pair '(xml-mode nxml-mode php-mode) "<!--" "-->"
|
||||
:post-handlers '(("| " "SPC"))))
|
||||
|
||||
;; Branching & persistent undo
|
||||
;; Branching undo
|
||||
(def-package! undo-tree
|
||||
:demand t
|
||||
:config
|
||||
(setq undo-tree-auto-save-history t
|
||||
;; persistent undo history is known to cause undo history corruption, which
|
||||
;; can be very destructive! So disable it!
|
||||
(setq undo-tree-auto-save-history nil
|
||||
undo-tree-history-directory-alist
|
||||
(list (cons "." (concat doom-cache-dir "undo-tree-hist/"))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue