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
316 changed files with 1109 additions and 1103 deletions

View File

@ -46,14 +46,14 @@ If set to `nil', disable all the above behaviors.")
"rb" #'+css/toggle-inline-or-block)
(use-package! counsel-css
:when (featurep! :completion ivy)
:when (modulep! :completion ivy)
:hook (css-mode . counsel-css-imenu-setup)
:init
(map! :map (css-mode-map scss-mode-map less-css-mode-map)
:localleader ";" #'counsel-css))
(use-package! helm-css-scss
:when (featurep! :completion helm)
:when (modulep! :completion helm)
:defer t
:init
(map! :map (css-mode-map scss-mode-map less-css-mode-map)
@ -71,12 +71,12 @@ If set to `nil', disable all the above behaviors.")
;;
;;; Tools
(when (featurep! +lsp)
(when (modulep! +lsp)
(add-hook! '(css-mode-local-vars-hook
scss-mode-local-vars-hook
sass-mode-local-vars-hook
less-css-mode-local-vars-hook)
:append #'lsp!))
(when (featurep! +tree-sitter)
(when (modulep! +tree-sitter)
(add-hook 'css-mode-local-vars-hook #'tree-sitter! 'append))