lang/org: refactor how module loads flag features
This commit is contained in:
parent
31e4bfb2d4
commit
23b5a6c142
1 changed files with 2 additions and 9 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue