Load custom-file & move undo-tree config to core-editor
This commit is contained in:
parent
b613fb773b
commit
be4be57a1a
2 changed files with 10 additions and 4 deletions
|
@ -57,6 +57,11 @@ modes are active and the buffer is read-only.")
|
||||||
savehist-additional-variables '(kill-ring search-ring regexp-search-ring))
|
savehist-additional-variables '(kill-ring search-ring regexp-search-ring))
|
||||||
(savehist-mode 1)
|
(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
|
;; Keep track of recently opened files
|
||||||
(require 'recentf)
|
(require 'recentf)
|
||||||
(setq recentf-save-file (concat doom-cache-dir "recentf")
|
(setq recentf-save-file (concat doom-cache-dir "recentf")
|
||||||
|
|
|
@ -95,12 +95,10 @@ there are problems.")
|
||||||
create-lockfiles nil
|
create-lockfiles nil
|
||||||
history-length 1000
|
history-length 1000
|
||||||
make-backup-files nil
|
make-backup-files nil
|
||||||
undo-tree-auto-save-history t
|
|
||||||
;; files
|
;; files
|
||||||
abbrev-file-name (concat doom-local-dir "abbrev.el")
|
abbrev-file-name (concat doom-local-dir "abbrev.el")
|
||||||
auto-save-list-file-name (concat doom-cache-dir "autosave")
|
auto-save-list-file-name (concat doom-cache-dir "autosave")
|
||||||
backup-directory-alist (list (cons "." (concat doom-cache-dir "backup/")))
|
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/")
|
pcache-directory (concat doom-cache-dir "pcache/")
|
||||||
server-auth-dir (concat doom-cache-dir "server/")
|
server-auth-dir (concat doom-cache-dir "server/")
|
||||||
shared-game-score-directory (concat doom-etc-dir "shared-game-score/")
|
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-backup-directory-alist backup-directory-alist
|
||||||
tramp-persistency-file-name (concat doom-cache-dir "tramp-persistency.el")
|
tramp-persistency-file-name (concat doom-cache-dir "tramp-persistency.el")
|
||||||
url-cache-directory (concat doom-cache-dir "url/")
|
url-cache-directory (concat doom-cache-dir "url/")
|
||||||
url-configuration-directory (concat doom-etc-dir "url/")
|
url-configuration-directory (concat doom-etc-dir "url/"))
|
||||||
undo-tree-history-directory-alist (list (cons "." (concat doom-cache-dir "undo-tree-hist/"))))
|
|
||||||
|
;; 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
|
;; be quiet at startup
|
||||||
(advice-add #'display-startup-echo-area-message :override #'ignore)
|
(advice-add #'display-startup-echo-area-message :override #'ignore)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue