Fix #1764: 'doom autoload' generating broken autoloads.pkg.el

Due to missing straight state that is properly initialized for 'doom
refresh' (by doom-packages-install), but not for 'doom autoloads'.
This commit is contained in:
Henrik Lissner 2019-09-08 20:52:30 -04:00
parent d308cedf95
commit a44e9153d3
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -27,6 +27,8 @@ byte-compiles `doom-autoload-file', as well as `doom-package-autoload-file'
It also caches `load-path', `Info-directory-list', `doom-disabled-packages',
`package-activated-list' and `auto-mode-alist'."
;; REVIEW Can we avoid calling `straight-check-all' everywhere?
(straight-check-all)
(doom-reload-autoloads nil 'force))