fix(lib): update doom/reload-autoloads
To reflect recent changes (particularlyb914830
). Amend:b914830403
This commit is contained in:
parent
39197618ec
commit
9cbc173e0d
1 changed files with 7 additions and 2 deletions
|
@ -99,7 +99,7 @@ Runs `doom-after-reload-hook' afterwards."
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom/reload-autoloads ()
|
(defun doom/reload-autoloads ()
|
||||||
"Reload only `doom-autoloads-file' and `doom-package-autoload-file'.
|
"Reload only the autoloads of the current profile.
|
||||||
|
|
||||||
This is much faster and safer than `doom/reload', but not as comprehensive. This
|
This is much faster and safer than `doom/reload', but not as comprehensive. This
|
||||||
reloads your package and module visibility, but does not install new packages or
|
reloads your package and module visibility, but does not install new packages or
|
||||||
|
@ -108,7 +108,12 @@ remove orphaned ones. It also doesn't reload your private config.
|
||||||
It is useful to only pull in changes performed by 'doom sync' on the command
|
It is useful to only pull in changes performed by 'doom sync' on the command
|
||||||
line."
|
line."
|
||||||
(interactive)
|
(interactive)
|
||||||
(load (file-name-sans-extension doom-autoloads-file) nil 'nomessage))
|
(require 'doom-profiles)
|
||||||
|
;; TODO: Make this more robust
|
||||||
|
(dolist (file (mapcar #'car doom-profile-generators))
|
||||||
|
(when (string-match-p "/[0-9]+-loaddefs[.-]" file)
|
||||||
|
(load (doom-path doom-profile-dir doom-profile-init-dir-name file)
|
||||||
|
'noerror))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom/reload-env ()
|
(defun doom/reload-env ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue