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:
parent
0407621aff
commit
ad6a3d0f33
316 changed files with 1109 additions and 1103 deletions
|
@ -72,7 +72,7 @@ Fixes #3939: unsortable dired entries on Windows."
|
|||
|
||||
|
||||
(use-package! ranger
|
||||
:when (featurep! +ranger)
|
||||
:when (modulep! +ranger)
|
||||
:after dired
|
||||
:init (setq ranger-override-dired t)
|
||||
:config
|
||||
|
@ -129,7 +129,7 @@ we have to clean it up ourselves."
|
|||
|
||||
|
||||
(use-package! dirvish
|
||||
:when (featurep! +dirvish)
|
||||
:when (modulep! +dirvish)
|
||||
:defer t
|
||||
:init (after! dired (dirvish-override-dired-mode))
|
||||
:hook (dired-mode . dired-omit-mode)
|
||||
|
@ -138,7 +138,7 @@ we have to clean it up ourselves."
|
|||
dirvish-hide-details nil
|
||||
dirvish-attributes '(git-msg)
|
||||
dired-omit-files (concat dired-omit-files "\\|^\\..*$"))
|
||||
(when (featurep! +icons)
|
||||
(when (modulep! +icons)
|
||||
(push 'all-the-icons dirvish-attributes))
|
||||
(map! :map dirvish-mode-map
|
||||
:n "b" #'dirvish-goto-bookmark
|
||||
|
@ -152,8 +152,8 @@ we have to clean it up ourselves."
|
|||
|
||||
|
||||
(use-package! all-the-icons-dired
|
||||
:when (featurep! +icons)
|
||||
:unless (featurep! +dirvish)
|
||||
:when (modulep! +icons)
|
||||
:unless (modulep! +dirvish)
|
||||
:hook (dired-mode . all-the-icons-dired-mode)
|
||||
:config
|
||||
;; HACK Fixes #1929: icons break file renaming in Emacs 27+, because the icon
|
||||
|
@ -176,8 +176,8 @@ we have to clean it up ourselves."
|
|||
|
||||
|
||||
(use-package! dired-x
|
||||
:unless (featurep! +dirvish)
|
||||
:unless (featurep! +ranger)
|
||||
:unless (modulep! +dirvish)
|
||||
:unless (modulep! +ranger)
|
||||
:hook (dired-mode . dired-omit-mode)
|
||||
:config
|
||||
(setq dired-omit-verbose nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue