Hacker News new | ask | show | jobs
by timonoko 1162 days ago
Googled it and there is already

    (global-undo-tree-mode)
    (setq undo-tree-auto-save-history t)
    (setq undo-tree-history-directory-alist '(("." . "~/.emacs.d/undo")))
I did not know that.