     (with-temp-file doom-packages-file
       (insert ";;; -*- lexical-binding:t -*-\n"
               ";; This file was autogenerated by `doom|refresh-cache', DO NOT EDIT!\n")
-      (prin1 `(setq Info-directory-list ',Info-directory-list
+      (prin1 `(setq load-path ',load-path
+                    Info-directory-list ',Info-directory-list
                     doom-disabled-packages ',doom-disabled-packages
                     package-activated-list ',package-activated-list)
              (current-buffer)))))

;; no-byte-compile: t
;; no-update-autoloads: t
;; End:\n")
                  (eval-buffer buf)
                  (save-buffer)
                  (message "Done!"))
              ('error

    (require 'cl-lib)
    (require 'map))
  (cl-pushnew doom-core-dir load-path :test #'string=)
  (require 'core-lib)
  (when (or force-p (not doom-init-p))
    ;; packages.el cache
    (when (and force-p (file-exists-p doom-packages-file))
      (message "Deleting packages.el cache")
      (delete-file doom-packages-file))
    (unless (load doom-packages-file 'noerror 'nomessage 'nosuffix)
      ;; Ensure core folders exist, otherwise we get errors
