Fork me on GitHub
#emacs
<
2022-03-22
>
Ben Sless13:03:34

Did anyone's Emacs start persisting undo-tree files?

5
tvaughan18:03:59

(use-package undo-tree
  :bind
  (("C-z" . undo-tree-undo)
   ("C-c z" . undo-tree-visualize))
  :init
  (let ((undo-tree-history-directory (expand-file-name "undo-tree" user-emacs-directory)))
    (setq undo-tree-history-directory-alist `(("." . ,undo-tree-history-directory))))
  :config
  (global-undo-tree-mode t))