Don't strip out vars from doom module autoloads
Doom's autoloads generator will strip out forms that modify variables in doom-autoload-cached-vars (load-path, auto-mode-alist, etc). These are undesireable in package autoloads, but may be desireable in Doom module autoloads.
This commit is contained in:
parent
14fc65a9fb
commit
c3734603f5
1 changed files with 2 additions and 1 deletions
|
@ -27,7 +27,8 @@ one wants that.")
|
|||
(defun doom-cli-reload-core-autoloads (&optional file)
|
||||
(print! (start "(Re)generating core autoloads..."))
|
||||
(print-group!
|
||||
(let ((file (or file doom-autoload-file)))
|
||||
(let ((file (or file doom-autoload-file))
|
||||
doom-autoload-cached-vars)
|
||||
(cl-check-type file string)
|
||||
(and (print! (start "Generating core autoloads..."))
|
||||
(doom-cli--write-autoloads
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue