Add doom/reload-autoloads

This commit is contained in:
Henrik Lissner 2019-07-07 13:12:35 +02:00
parent 63412af9c3
commit dd4c70fe93
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -45,6 +45,20 @@ Runs `doom-reload-hook' afterwards."
(general-auto-unbind-keys t) (general-auto-unbind-keys t)
(message "Finished!")) (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 ;;;###autoload
(defun doom/reload-env () (defun doom/reload-env ()
"Regenerates and reloads your shell environment. "Regenerates and reloads your shell environment.