From 63687ccb10414bcd16e7b6373e45de069fb1d696 Mon Sep 17 00:00:00 2001 From: roryk Date: Tue, 30 Dec 2014 12:19:42 -0500 Subject: [PATCH] autosave undo history --- core/prelude-editor.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/prelude-editor.el b/core/prelude-editor.el index 025541e..e6442a8 100644 --- a/core/prelude-editor.el +++ b/core/prelude-editor.el @@ -57,6 +57,11 @@ (setq auto-save-file-name-transforms `((".*" ,temporary-file-directory t))) +;; autosave the undo-tree history +(setq undo-tree-history-directory-alist + `((".*" . ,temporary-file-directory))) +(setq undo-tree-auto-save-history t) + ;; revert buffers automatically when underlying files are changed externally (global-auto-revert-mode t)