Commit 0f2e16251194

Vincent Demeester <vincent@sbr.pm>
2015-08-01 10:58:46
Fix undo-tree configuration
1 parent 23b94a9
Changed files (1)
.emacs.d
.emacs.d/emacs.org
@@ -1230,7 +1230,13 @@
       ;;; Load undo-tree before evil for the :bind
       (use-package undo-tree
         :ensure t
-        :bind (("C-*" . undo-tree-undo)))
+        :bind (("C-*" . undo-tree-undo))
+        :config
+        (progn
+          (global-undo-tree-mode)
+          (setq undo-tree-auto-save-history t)
+          (let ((undo-dir (expand-file-name "undo" user-emacs-directory)))
+            (setq undo-tree-history-directory-alist (list (cons "." undo-dir))))))
     #+END_SRC
 
 ** Server mode