diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index f358a39c7..78121f800 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -968,15 +968,8 @@ compelling reason, so..." )) ;;; Custom org modules - (if (featurep! +brain) (load! "contrib/brain")) - (if (featurep! +dragndrop) (load! "contrib/dragndrop")) - (if (featurep! +ipython) (load! "contrib/ipython")) - (if (featurep! +journal) (load! "contrib/journal")) - (if (featurep! +jupyter) (load! "contrib/jupyter")) - (if (featurep! +pomodoro) (load! "contrib/pomodoro")) - (if (featurep! +present) (load! "contrib/present")) - (if (featurep! +roam) (load! "contrib/roam")) - (if (featurep! +noter) (load! "contrib/noter")) + (dolist (flag doom--current-flags) + (load! (concat "contrib/" (substring (symbol-name flag) 1)))) ;; Add our general hooks after the submodules, so that any hooks the ;; submodules add run after them, and can overwrite any defaults if necessary.