From d180bb71b3b1b01078374a9dd9e9f40990f56f09 Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Fri, 9 Oct 2020 17:39:45 +0300 Subject: [PATCH] Move some config where it belongs --- core/prelude-editor.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/prelude-editor.el b/core/prelude-editor.el index 65fb389..11d999b 100644 --- a/core/prelude-editor.el +++ b/core/prelude-editor.el @@ -55,11 +55,6 @@ (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) @@ -360,7 +355,12 @@ indent yanked text (with prefix arg don't indent)." ;; enable Prelude's keybindings (prelude-mode t) -;; sensible undo +;; supercharge your undo/redo with undo-tree +(require 'undo-tree) +;; autosave the undo-tree history +(setq undo-tree-history-directory-alist + `((".*" . ,temporary-file-directory))) +(setq undo-tree-auto-save-history t) (global-undo-tree-mode) (diminish 'undo-tree-mode)