summaryrefslogtreecommitdiffstats
path: root/spacemacs
diff options
context:
space:
mode:
authorAmin Bandali <me@aminb.org>2015-03-09 00:19:17 -0400
committerAmin Bandali <me@aminb.org>2015-03-09 00:19:17 -0400
commit47f44a8dd4dbd8472f14d741869131c7a1059f88 (patch)
treeabcb5dd903f96cd1962b23835a677df3dc255b9e /spacemacs
parent0050153c2f9ec54e8e518e63d61cedf7e1681e28 (diff)
downloadconfigs-47f44a8dd4dbd8472f14d741869131c7a1059f88.tar.gz
configs-47f44a8dd4dbd8472f14d741869131c7a1059f88.tar.xz
configs-47f44a8dd4dbd8472f14d741869131c7a1059f88.zip
enable persistent undo in emacs
reverse of https://github.com/syl20bnr/spacemacs/commit/885d092e72aeaa470253c19831ba42e2eecf3514
Diffstat (limited to '')
-rw-r--r--spacemacs/.spacemacs6
1 files changed, 6 insertions, 0 deletions
diff --git a/spacemacs/.spacemacs b/spacemacs/.spacemacs
index 541736c..b2e5392 100644
--- a/spacemacs/.spacemacs
+++ b/spacemacs/.spacemacs
@@ -104,6 +104,12 @@ layers configuration."
(setq powerline-default-separator nil)
(setq TeX-PDF-mode t
Tex-command-default 'TeX)
+ (setq undo-tree-auto-save-history t
+ undo-tree-history-directory-alist
+ `(("." . ,(concat spacemacs-cache-directory "undo"))))
+ (unless (file-exists-p (concat spacemacs-cache-directory "undo"))
+ (make-directory (concat spacemacs-cache-directory "undo")))
+
(setq TeX-view-program-selection
'(((output-dvi style-pstricks)
"dvips and gv")