From 7c391344f7d5df4e9a6a2c14465b2bb5b73d51b0 Mon Sep 17 00:00:00 2001 From: sterni Date: Mon, 17 Jan 2022 13:05:12 +0100 Subject: feat(users/sterni/emacs): save undo history Change-Id: I75ca7b2011f14244cac8af7762b6d2f6ce284055 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4958 Tested-by: BuildkiteCI Reviewed-by: sterni Autosubmit: sterni --- users/sterni/emacs/init.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'users/sterni/emacs') 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 -- cgit 1.4.1