Enable global-undo-tree-mode after setting variables

This commit is contained in:
Henrik Lissner 2018-05-15 10:48:42 +02:00
parent 94f9e43f25
commit a6c6686628
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -152,12 +152,12 @@ fundamental-mode) for performance sake."
(def-package! undo-tree
:defer pre-command-hook
:config
(global-undo-tree-mode +1)
;; persistent undo history is known to cause undo history corruption, which
;; can be very destructive! So disable it!
(setq undo-tree-auto-save-history nil
undo-tree-history-directory-alist
(list (cons "." (concat doom-cache-dir "undo-tree-hist/")))))
(list (cons "." (concat doom-cache-dir "undo-tree-hist/"))))
(global-undo-tree-mode +1))
;;