Skip to content

Commit

Permalink
undo-tree files outside projects
Browse files Browse the repository at this point in the history
  • Loading branch information
jordonbiondo committed Jan 17, 2024
1 parent f7c0f90 commit 409e5b8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion init.el
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,13 @@

(use-package undo-tree
:defer 1
:config (global-undo-tree-mode 1)
:config
(progn
(global-undo-tree-mode 1)
(let ((my-dir "~/.undo-tree"))
(unless (file-exists-p my-dir)
(make-directory my-dir t))
(setq undo-tree-history-directory-alist (list (cons "." my-dir)))))
:bind (("C-c j" . undo-tree-undo)
("C-c k" . undo-tree-redo)
("C-c l" . undo-tree-switch-branch)
Expand Down

0 comments on commit 409e5b8

Please sign in to comment.