Move custom-file to DOOMDIR/init.el

(And don't auto-load it at startup; no need)
This commit is contained in:
Henrik Lissner 2019-06-25 11:55:35 +02:00
parent b5c5b7f10d
commit b245237b0c
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395
2 changed files with 2 additions and 5 deletions

View File

@ -96,11 +96,7 @@ non-nil."
(load! "config" (plist-get plist :path) t)))
doom-modules)
(run-hook-wrapped 'doom-init-modules-hook #'doom-try-run-hook)
(load! "config" doom-private-dir t)
(unless custom-file
(setq custom-file (concat doom-local-dir "custom.el")))
(when (stringp custom-file)
(load custom-file t t t)))))
(load! "config" doom-private-dir t))))
;;

View File

@ -201,6 +201,7 @@ Doom was setup, which may cause problems.")
async-byte-compile-log-file (concat doom-etc-dir "async-bytecomp.log")
auto-save-list-file-name (concat doom-cache-dir "autosave")
backup-directory-alist (list (cons "." (concat doom-cache-dir "backup/")))
custom-file (concat doom-private-dir "init.el")
desktop-dirname (concat doom-etc-dir "desktop")
desktop-base-file-name "autosave"
desktop-base-lock-name "autosave-lock"