Move some config where it belongs

This commit is contained in:
Bozhidar Batsov 2020-10-09 17:39:45 +03:00
parent 74e1eac940
commit d180bb71b3

View file

@ -55,11 +55,6 @@
(setq auto-save-file-name-transforms
`((".*" ,temporary-file-directory t)))
;; autosave the undo-tree history
(setq undo-tree-history-directory-alist
`((".*" . ,temporary-file-directory)))
(setq undo-tree-auto-save-history t)
;; revert buffers automatically when underlying files are changed externally
(global-auto-revert-mode t)
@ -360,7 +355,12 @@ indent yanked text (with prefix arg don't indent)."
;; enable Prelude's keybindings
(prelude-mode t)
;; sensible undo
;; supercharge your undo/redo with undo-tree
(require 'undo-tree)
;; autosave the undo-tree history
(setq undo-tree-history-directory-alist
`((".*" . ,temporary-file-directory)))
(setq undo-tree-auto-save-history t)
(global-undo-tree-mode)
(diminish 'undo-tree-mode)