mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-31 14:43:40 -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:
@@ -240,13 +240,13 @@ Will return nil if neither is available. These require ripgrep to be installed."
|
||||
(unless identifier
|
||||
(let ((query (rxt-quote-pcre identifier)))
|
||||
(ignore-errors
|
||||
(cond ((featurep! :completion ivy)
|
||||
(cond ((modulep! :completion ivy)
|
||||
(+ivy-file-search :query query)
|
||||
t)
|
||||
((featurep! :completion helm)
|
||||
((modulep! :completion helm)
|
||||
(+helm-file-search :query query)
|
||||
t)
|
||||
((featurep! :completion vertico)
|
||||
((modulep! :completion vertico)
|
||||
(+vertico-file-search :query query)
|
||||
t))))))
|
||||
|
||||
@@ -278,10 +278,10 @@ otherwise falling back to ffap.el (find-file-at-point)."
|
||||
(or (file-exists-p guess)
|
||||
(ffap-url-p guess)))
|
||||
(find-file-at-point guess))
|
||||
((and (featurep! :completion ivy)
|
||||
((and (modulep! :completion ivy)
|
||||
(doom-project-p))
|
||||
(counsel-file-jump guess (doom-project-root)))
|
||||
((and (featurep! :completion vertico)
|
||||
((and (modulep! :completion vertico)
|
||||
(doom-project-p))
|
||||
(+vertico/find-file-in (doom-project-root) guess))
|
||||
((find-file-at-point (ffap-prompter guess))))
|
||||
|
Reference in New Issue
Block a user