akhayyat/dotfiles

emacs: undo-tree: set directory for undo-tree files and enable diff and timestamps

Commit bf2d1885f6f4 · Ahmad Khayyat · 2022-12-02 22:07 +0300

Changeset
bf2d1885f6f421ac2e7e68321331a9546aff1d47

View source at this commit

Comments

No comments yet.

Log in to comment

Diff

diff --git a/emacs b/emacs
--- a/emacs
+++ b/emacs
@@ -246,6 +246,9 @@
 ;;   http://www.dr-qubit.org/emacs.php#undo-tree
 (require 'undo-tree)
 (global-undo-tree-mode)
+(setq undo-tree-history-directory-alist '(("." . "~/.emacs.d/undo-tree-history")))
+(setq undo-tree-visualizer-diff t)
+(setq undo-tree-visualizer-timestamps t)
 
 ;;========================
 ;;  Third-Party Packages