Make load-env-vars a core package
Fixes a race condition where the load-env-vars package is used before it was (or could be) installed.
This commit is contained in:
parent
111b3758d4
commit
eb1296387f
3 changed files with 7 additions and 6 deletions
|
@ -450,11 +450,12 @@ to least)."
|
|||
(unless (or force-p
|
||||
(doom-initialize-autoloads doom-package-autoload-file)
|
||||
noninteractive)
|
||||
(user-error "Your package autoloads are missing! Run `bin/doom refresh' to regenerate them"))))
|
||||
(user-error "Your package autoloads are missing! Run `bin/doom refresh' to regenerate them")))
|
||||
|
||||
;; Load shell environment
|
||||
(when (file-readable-p doom-env-file)
|
||||
(load-env-vars doom-env-file))
|
||||
;; Load shell environment
|
||||
(unless noninteractive
|
||||
(when (file-readable-p doom-env-file)
|
||||
(load-env-vars doom-env-file))))
|
||||
|
||||
(require 'core-lib)
|
||||
(require 'core-modules)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue