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:
@ -1,5 +1,5 @@
|
||||
;;; emacs/ibuffer/autoload/workspaces.el -*- lexical-binding: t; -*-
|
||||
;;;###if (featurep! :ui workspaces)
|
||||
;;;###if (modulep! :ui workspaces)
|
||||
|
||||
;;;###autoload
|
||||
(defun +ibuffer-workspace (workspace-name)
|
||||
|
@ -7,7 +7,7 @@
|
||||
ibuffer-filter-group-name-face '(:inherit (success bold))
|
||||
ibuffer-formats
|
||||
`((mark modified read-only locked
|
||||
,@(if (featurep! +icons)
|
||||
,@(if (modulep! +icons)
|
||||
`(;; Here you may adjust by replacing :right with :center
|
||||
;; or :left According to taste, if you want the icon
|
||||
;; further from the name
|
||||
@ -39,7 +39,7 @@
|
||||
:header-mouse-map ibuffer-size-header-map)
|
||||
(file-size-human-readable (buffer-size)))
|
||||
|
||||
(when (featurep! :ui workspaces)
|
||||
(when (modulep! :ui workspaces)
|
||||
(define-ibuffer-filter workspace-buffers
|
||||
"Filter for workspace buffers"
|
||||
(:reader (+workspace-get (read-string "workspace name: "))
|
||||
@ -48,7 +48,7 @@
|
||||
|
||||
(define-key ibuffer-mode-map [remap ibuffer-visit-buffer] #'+ibuffer/visit-workspace-buffer))
|
||||
|
||||
(when (featurep! :completion ivy)
|
||||
(when (modulep! :completion ivy)
|
||||
(defadvice! +ibuffer--use-counsel-maybe-a (_file &optional _wildcards)
|
||||
"Use `counsel-find-file' instead of `find-file'."
|
||||
:override #'ibuffer-find-file
|
||||
@ -71,7 +71,7 @@
|
||||
:hook (ibuffer . ibuffer-projectile-set-filter-groups)
|
||||
:config
|
||||
(setq ibuffer-projectile-prefix
|
||||
(if (featurep! +icons)
|
||||
(if (modulep! +icons)
|
||||
(concat (all-the-icons-octicon
|
||||
"file-directory"
|
||||
:face ibuffer-filter-group-name-face
|
||||
|
Reference in New Issue
Block a user