Load custom-file & move undo-tree config to core-editor

This commit is contained in:
Henrik Lissner 2017-05-15 11:18:26 +02:00
parent b613fb773b
commit be4be57a1a
2 changed files with 10 additions and 4 deletions

View file

@ -57,6 +57,11 @@ modes are active and the buffer is read-only.")
savehist-additional-variables '(kill-ring search-ring regexp-search-ring))
(savehist-mode 1)
;; Branching & persistent undo
(require 'undo-tree)
(setq undo-tree-auto-save-history t
undo-tree-history-directory-alist (list (cons "." (concat doom-cache-dir "undo-tree-hist/"))))
;; Keep track of recently opened files
(require 'recentf)
(setq recentf-save-file (concat doom-cache-dir "recentf")

View file

@ -95,12 +95,10 @@ there are problems.")
create-lockfiles nil
history-length 1000
make-backup-files nil
undo-tree-auto-save-history t
;; files
abbrev-file-name (concat doom-local-dir "abbrev.el")
auto-save-list-file-name (concat doom-cache-dir "autosave")
backup-directory-alist (list (cons "." (concat doom-cache-dir "backup/")))
custom-file (concat doom-etc-dir "custom.el")
pcache-directory (concat doom-cache-dir "pcache/")
server-auth-dir (concat doom-cache-dir "server/")
shared-game-score-directory (concat doom-etc-dir "shared-game-score/")
@ -108,8 +106,11 @@ there are problems.")
tramp-backup-directory-alist backup-directory-alist
tramp-persistency-file-name (concat doom-cache-dir "tramp-persistency.el")
url-cache-directory (concat doom-cache-dir "url/")
url-configuration-directory (concat doom-etc-dir "url/")
undo-tree-history-directory-alist (list (cons "." (concat doom-cache-dir "undo-tree-hist/"))))
url-configuration-directory (concat doom-etc-dir "url/"))
;; move custom defs out of init.el
(setq custom-file (concat doom-etc-dir "custom.el"))
(load custom-file nil t)
;; be quiet at startup
(advice-add #'display-startup-echo-area-message :override #'ignore)