            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"

      (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))
         ('error
          (lwarn 'doom-modules :error
                 "%s in '%s %s' -> %s"

  "A convenience macro wrapper for `doom-module-loaded-p'. It is evaluated at
compile-time/macro-expansion time."
  (unless submodule
    (let* ((path (or load-file-name byte-compile-current-file))
           (module-pair (doom-module-from-path path)))
      (unless module-pair
        (error "featurep! couldn't detect what module I'm in! (in %s)" path))
      (setq flag module
            module (car module-pair)
            submodule (cdr module-pair))))
  (if flag
      (and (memq flag (doom-module-flags module submodule)) t)
    (doom-module-loaded-p module submodule)))
