lang/org: refactor how module loads flag features

This commit is contained in:
Henrik Lissner 2020-05-11 02:53:18 -04:00
parent 31e4bfb2d4
commit 23b5a6c142
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -968,15 +968,8 @@ compelling reason, so..."
)) ))
;;; Custom org modules ;;; Custom org modules
(if (featurep! +brain) (load! "contrib/brain")) (dolist (flag doom--current-flags)
(if (featurep! +dragndrop) (load! "contrib/dragndrop")) (load! (concat "contrib/" (substring (symbol-name flag) 1))))
(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"))
;; Add our general hooks after the submodules, so that any hooks the ;; Add our general hooks after the submodules, so that any hooks the
;; submodules add run after them, and can overwrite any defaults if necessary. ;; submodules add run after them, and can overwrite any defaults if necessary.