about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2022-01-17T12·05+0100
committerclbot <clbot@tvl.fyi>2022-01-17T13·09+0000
commit7c391344f7d5df4e9a6a2c14465b2bb5b73d51b0 (patch)
tree99bdd0a0123b4416daffc2923c27f6b9d61adb4a /users
parentce2ae0f8b15af4bd5d869df889311f0805417ba1 (diff)
feat(users/sterni/emacs): save undo history r/3613
Change-Id: I75ca7b2011f14244cac8af7762b6d2f6ce284055
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4958
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Autosubmit: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'users')
-rw-r--r--users/sterni/emacs/init.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/users/sterni/emacs/init.el b/users/sterni/emacs/init.el
index 4e8752c9937c..fc69f34a3f61 100644
--- a/users/sterni/emacs/init.el
+++ b/users/sterni/emacs/init.el
@@ -49,6 +49,8 @@
       `((".*" ,temporary-file-directory t)))
 (setq backup-directory-alist
       `((".*" . ,temporary-file-directory)))
+(setq undo-tree-history-directory-alist
+      `((".*" . ,temporary-file-directory)))
 (setq backup-by-copying t)
 (setq create-lockfiles nil)
 
@@ -90,7 +92,8 @@
 
 (use-package undo-tree
   :config
-  (global-undo-tree-mode))
+  (global-undo-tree-mode)
+  (setq undo-tree-auto-save-history t))
 
 (use-package magit
   :after evil