diff --git a/core/autoload/config.el b/core/autoload/config.el index 1605054b6..e4b3548ec 100644 --- a/core/autoload/config.el +++ b/core/autoload/config.el @@ -45,6 +45,20 @@ Runs `doom-reload-hook' afterwards." (general-auto-unbind-keys t) (message "Finished!")) +;;;###autoload +(defun doom/reload-autoloads (&optional force-p) + "Reload only `doom-autoload-file' and `doom-package-autoload-file'. + +This is much faster and safer than `doom/reload', but not as comprehensive. This +reloads your package and module visibility, but does not enable/disable It does +not reload your private config. + +It is useful to only pull in changes performed by 'doom refresh' on the command +line." + (interactive "P") + (doom-initialize-autoloads doom-autoload-file) + (doom-initialize-autoloads doom-package-autoload-file)) + ;;;###autoload (defun doom/reload-env () "Regenerates and reloads your shell environment.