refactor: deprecate featurep! for modulep!

featurep! will be renamed modulep! in the future, so it's been
deprecated. They have identical interfaces, and can be replaced without
issue.

featurep! was never quite the right name for this macro. It implied that
it had some connection to featurep, which it doesn't (only that it was
similar in purpose; still, Doom modules are not features). To undo such
implications and be consistent with its namespace (and since we're
heading into a storm of breaking changes with the v3 release anyway),
now was the best opportunity to begin the transition.
This commit is contained in:
Henrik Lissner 2022-08-12 20:29:19 +02:00
parent 0407621aff
commit ad6a3d0f33
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
316 changed files with 1109 additions and 1103 deletions

View file

@ -145,14 +145,14 @@ Only has an effect in GUI Emacs.")
(use-package! forge
:when (featurep! +forge)
:when (modulep! +forge)
;; We defer loading even further because forge's dependencies will try to
;; compile emacsql, which is a slow and blocking operation.
:after-call magit-status
:commands forge-create-pullreq forge-create-issue
:preface
(setq forge-database-file (concat doom-etc-dir "forge/forge-database.sqlite"))
(setq forge-add-default-bindings (not (featurep! :editor evil +everywhere)))
(setq forge-add-default-bindings (not (modulep! :editor evil +everywhere)))
:config
;; All forge list modes are derived from `forge-topic-list-mode'
(map! :map forge-topic-list-mode-map :n "q" #'kill-current-buffer)
@ -189,7 +189,7 @@ ensure it is built when we actually use Forge."
(use-package! code-review
:when (featurep! +forge)
:when (modulep! +forge)
:after magit
:init
;; TODO This needs to either a) be cleaned up or better b) better map things
@ -223,7 +223,7 @@ ensure it is built when we actually use Forge."
(use-package! evil-collection-magit
:when (featurep! :editor evil +everywhere)
:when (modulep! :editor evil +everywhere)
:defer t
:init (defvar evil-collection-magit-use-z-for-folds t)
:config
@ -287,7 +287,7 @@ ensure it is built when we actually use Forge."
(use-package! evil-collection-magit-section
:when (featurep! :editor evil +everywhere)
:when (modulep! :editor evil +everywhere)
:defer t
:init
(defvar evil-collection-magit-section-use-z-for-folds evil-collection-magit-use-z-for-folds)