mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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)
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
(when (package! magit :pin "c1fb53d3de6390961ccd8dfb1cc135383508d0fc")
|
||||
(package! compat :pin "cc1924fd8b3f9b75b26bf93f084ea938c06f9615")
|
||||
(when (featurep! +forge)
|
||||
(when (modulep! +forge)
|
||||
(package! forge :pin "36208c43bf41782cfe81fccc904f8adbe57818e1"))
|
||||
(package! magit-gitflow :pin "cc41b561ec6eea947fe9a176349fb4f771ed865b")
|
||||
(package! magit-todos :pin "67fd80c2f10aec4d5b2a24b5d3d53c08cc1f05dc")
|
||||
|
Reference in New Issue
Block a user