       (unless loaded-p
         (doom-module-enable module submodule flags))
       `(condition-case-unless-debug ex
-           (let ((doom--module ',(cons module submodule)))
-             (load! config ,(doom-module-path module submodule) t))
+           (load! config ,(doom-module-path module submodule) t)
          ('error
           (lwarn 'doom-modules :error
                  "%s in '%s %s' -> %s"

           for path = (doom-module-path module submodule append-file)
           if (file-exists-p path)
           collect path))



(defun doom--display-benchmark ()
  (message "Loaded %s packages in %.03fs"

  (expand-file-name (concat module "/" submodule "/" file)
                    doom-modules-dir))

(defun doom-module-from-path (path)
  "Get module cons cell (MODULE . SUBMODULE) for PATH, if possible."
  (when (string-match (concat doom-modules-dir "\\([^/]+\\)/\\([^/]+\\)/") path)
    (cons (intern (concat ":" (match-string 1 path)))
          (intern (match-string 2 path)))))

(defun doom-module-flags (module submodule)
  "Returns a list of flags provided for MODULE SUBMODULE."
  (and (hash-table-p doom-modules)
