 
 (defun doom--display-benchmark ()
   (message "Loaded %s packages in %.03fs"
-           (length doom--package-load-path)
+           (eval-when-compile (length doom--package-load-path))
            (setq doom-init-time (float-time (time-subtract after-init-time before-init-time)))))
 
 

                  (reverse (directory-files-recursively doom-core-dir "\\.el$"))
                  (reverse (directory-files-recursively doom-modules-dir "\\.el$"))))))
    (dolist (file targets)
      (when (byte-compile-file file)
        (message "+ Recompiling %s" file)
        (cl-incf n)))
    (if (= (length targets) 0)
        (message "Nothing to recompile")

`doom/packages-autoremove'. "
  (interactive)
  (if noninteractive
      (progn
        (message "Reloading...")
        (require 'server)
        (unless (ignore-errors (server-eval-at "server" '(doom/reload)))
          (message "Recompiling")
          (doom/recompile)))
    (doom-initialize t)
    (doom/recompile)
    (message "Reloaded %d packages" (length doom--package-load-path))))
