         (error "Autoloads file couldn't be generated")))))
 
 (defun doom-initialize-packages (&optional force-p load-p)
-  "Loads the packages.el files across DOOM Emacs in order to fill `doom-modules'
-and `doom-packages', if they aren't set already. If FORCE-P is non-nil, do it
-even if they are."
+  "Crawls across your emacs.d in order to fill `doom-modules' (from init.el) and
+`doom-packages' (from packages.el files), if they aren't set already. If FORCE-P
+is non-nil, do it even if they are. Also aggressively loads all core autoload
+files."
   (doom-initialize force-p)
   (let ((noninteractive t)
         (load-fn

;; See core/autoload/packages.el for more functions.

(defvar doom-init-p nil
  "Non-nil if doom's package system has been initialized or not. It may not be
if you have byte-compiled your configuration (as intended). Running
`doom-initialize' sets this.")

(defvar doom-modules nil
  "A hash table of enabled modules.")

(defvar doom-packages nil
  "A list of enabled packages. Each element is a sublist, whose CAR is the
package's name as a symbol, and whose CDR is the plist supplied to its
`@package' declaration.")

(defvar doom-protected-packages
  '(persistent-soft quelpa use-package)

    (setq doom-init-p t)))

(defun doom-initialize-autoloads (&optional force-p)
  "Ensures that `doom-autoload-file' exists and is loaded. Otherwise run
`doom/reload-autoloads' to generate it."
  (unless (ignore-errors (require 'autoloads doom-autoload-file t))
    (unless noninteractive
