Files
.emacs.d/modules/editor/siren-undo-tree.el
Jim Myhrberg 6888df47c6 fix(editor): Improve reliability of undo history
The undo history feature of undo-tree has been very unreliable lately,
to the point it fails to load undo history for nearly every file.

It seems the undohist package is a lot more reliable.
2020-02-04 10:08:41 +00:00

31 lines
646 B
EmacsLisp

;;; siren-undo-tree.el --- jimeh's Emacs Siren: undo-tree configuration.
;;; Commentary:
;; Basic configuration for undo-tree.
;;; Code:
(use-package undo-tree
:hook
(after-init . global-undo-tree-mode)
:bind
("C-x u" . undo-tree-visualize)
("M--" . undo-tree-undo)
("M-_" . undo-tree-redo)
("s-z" . undo-tree-undo)
("s-Z" . undo-tree-redo)
:diminish
undo-tree-mode
:custom
;; autosave the undo-tree history
(undo-tree-history-directory-alist
`((".*" . ,(expand-file-name "undo-tree-history" siren-cache-dir))))
(undo-tree-auto-save-history nil))
(provide 'siren-undo-tree)
;;; siren-undo-tree.el ends here