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

             (error "No namespace specified on `@doom' for %s" m))
            ((eq m '*)
             (let ((mode-str (substring (symbol-name mode) 1)))
               (doom-enable-modules
                (cons mode
                      (--map (intern (f-base it))
                             (f-directories
                              (f-expand mode-str doom-modules-dir)))))))
            (t
             (doom-enable-module mode m))))
    doom-modules))



                 (unless simple-p
                   (-flatten
                    (--map (f--entries (doom-module-path (car it) (cdr it))
                                       (f-ext-p it "el") t)
                           (doom--module-pairs))))))
        (n 0)
        results)
    (dolist (file targets)
      (push (cons (f-relative file doom-emacs-dir)
                  (and (byte-recompile-file file nil 0)
                       (setq n (1+ n))))
            results))
    (when noninteractive
      (if targets (message "\n"))
      (message "Compiled %s files:\n%s" n
               (mapconcat (lambda (file) (concat "+ " (if (cdr file) "SUCCESS" "FAIL") ": " (car file)))
                          (reverse results) "\n")))))
