undo-tree.el
undo-tree.el copied to clipboard
Bug in persistent undo history
Here is my configuration:
(use-package undo-tree
:commands undo-tree-visualize
:bind ([remap undo] . undo-tree-visualize)
:custom ((undo-tree-auto-save-history t)
(undo-tree-history-directory-alist '(("." . "~/.emacs.d/undo-tree"))))
:config (global-undo-tree-mode))
Several opinions exist about how to fix this bug ; none of them works on my machine.
Addition: here are the opinions are was referring to: https://stackoverflow.com/questions/38428941/undo-tree-doesnt-auto-load-history
@apchamberlain is this project still maintain? I'm pretty sure a lot of people would be super happy to see it fixed 🎉💪
wouldn't this work?
(add-hook 'after-save-hook (lambda () (undo-tree-save-history nil t)))