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:
@ -49,7 +49,7 @@
|
||||
:return "return"
|
||||
:yield "use")
|
||||
|
||||
(if (not (featurep! +lsp))
|
||||
(if (not (modulep! +lsp))
|
||||
;; `+php-company-backend' uses `company-phpactor', `php-extras-company' or
|
||||
;; `company-dabbrev-code', in that order.
|
||||
(when +php--company-backends
|
||||
@ -60,7 +60,7 @@
|
||||
(setq lsp-clients-php-server-command "php-language-server.php"))
|
||||
(add-hook 'php-mode-local-vars-hook #'lsp! 'append))
|
||||
|
||||
(when (featurep! +tree-sitter)
|
||||
(when (modulep! +tree-sitter)
|
||||
(add-hook 'php-mode-local-vars-hook #'tree-sitter! 'append))
|
||||
|
||||
;; Use the smallest `sp-max-pair-length' for optimum `smartparens' performance
|
||||
@ -79,7 +79,7 @@
|
||||
|
||||
|
||||
(use-package! phpactor
|
||||
:unless (featurep! +lsp)
|
||||
:unless (modulep! +lsp)
|
||||
:after php-mode
|
||||
:init
|
||||
(add-to-list '+php--company-backends #'company-phpactor nil 'eq)
|
||||
@ -136,7 +136,7 @@
|
||||
|
||||
|
||||
(use-package! hack-mode
|
||||
:when (featurep! +hack)
|
||||
:when (modulep! +hack)
|
||||
:mode "\\.hh$")
|
||||
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
;; -*- lexical-binding: t; no-byte-compile: t; -*-
|
||||
;;; lang/php/doctor.el
|
||||
|
||||
(assert! (or (not (featurep! +lsp))
|
||||
(featurep! :tools lsp))
|
||||
(assert! (or (not (modulep! +lsp))
|
||||
(modulep! :tools lsp))
|
||||
"This module requires (:tools lsp)")
|
||||
|
||||
(assert! (or (not (featurep! +tree-sitter))
|
||||
(featurep! :tools tree-sitter))
|
||||
(assert! (or (not (modulep! +tree-sitter))
|
||||
(modulep! :tools tree-sitter))
|
||||
"This module requires (:tools tree-sitter)")
|
||||
|
@ -10,17 +10,17 @@
|
||||
(package! phpunit :pin "fe6bc91c3bd8b329c6d26ad883a025f06b5121ee")
|
||||
(package! composer :pin "7c7f89df226cac69664d7eca5e913b544dc475c5")
|
||||
|
||||
(when (featurep! +hack)
|
||||
(when (modulep! +hack)
|
||||
(package! hack-mode
|
||||
:recipe (:host github :repo "hhvm/hack-mode")
|
||||
:pin "a522f61c088ee2a13ab17f289a3131329e59badf"))
|
||||
|
||||
(unless (featurep! +lsp)
|
||||
(unless (modulep! +lsp)
|
||||
(package! phpactor :pin "34195f1533209e2ffd0f898a69c7db2bffd1eabe")
|
||||
(when (featurep! :completion company)
|
||||
(when (modulep! :completion company)
|
||||
(package! company-phpactor :pin "34195f1533209e2ffd0f898a69c7db2bffd1eabe")))
|
||||
|
||||
(when (featurep! :editor format)
|
||||
(when (modulep! :editor format)
|
||||
(package! php-cs-fixer :pin "7e12a1af5d65cd8a801eeb5564c6268a4e190c0c"))
|
||||
|
||||
;; For building php-extras
|
||||
|
Reference in New Issue
Block a user