core-packages: doom/refresh-autoloads: use doom-module-path + reload doom-modules
This commit is contained in:
parent
1336fc1ee2
commit
5024b6f4fb
1 changed files with 7 additions and 4 deletions
|
@ -334,14 +334,17 @@ autoloaded functions in the modules you use or among the core libraries.
|
||||||
Rerun this whenever you modify your init.el (or use `make autoloads` from the
|
Rerun this whenever you modify your init.el (or use `make autoloads` from the
|
||||||
command line)."
|
command line)."
|
||||||
(interactive)
|
(interactive)
|
||||||
|
;; Reload modules (don't load anything)
|
||||||
|
(setq doom-modules nil)
|
||||||
|
(let ((doom-dont-load-p t)
|
||||||
|
(noninteractive t))
|
||||||
|
(load (concat doom-emacs-dir "init.el") nil :nomessage t))
|
||||||
|
|
||||||
(let ((generated-autoload-file (concat doom-local-dir "autoloads.el"))
|
(let ((generated-autoload-file (concat doom-local-dir "autoloads.el"))
|
||||||
(autoload-files
|
(autoload-files
|
||||||
(append
|
(append
|
||||||
(-flatten (mapcar (lambda (m)
|
(-flatten (mapcar (lambda (m)
|
||||||
(let* ((dir (f-expand (format "%s/%s"
|
(let* ((dir (doom-module-path (car m) (cdr m)))
|
||||||
(substring (symbol-name (car m)) 1)
|
|
||||||
(cdr m))
|
|
||||||
doom-modules-dir))
|
|
||||||
(auto-dir (f-expand "autoload" dir))
|
(auto-dir (f-expand "autoload" dir))
|
||||||
(auto-file (f-expand "autoload.el" dir)))
|
(auto-file (f-expand "autoload.el" dir)))
|
||||||
(cond ((f-directory-p auto-dir)
|
(cond ((f-directory-p auto-dir)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue