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 @@
|
||||
;;; ui/ligatures/autoload/install.el -*- lexical-binding: t; -*-
|
||||
;;;###if (or (featurep! +fira) (featurep! +hasklig) (featurep! +iosevka))
|
||||
;;;###if (or (modulep! +fira) (modulep! +hasklig) (modulep! +iosevka))
|
||||
|
||||
(defun +ligatures--install-font (prefix name url-format fonts-alist &optional extra-fonts)
|
||||
"Install fonts to the local system.
|
||||
|
@ -141,7 +141,7 @@ and cannot run in."
|
||||
(let ((in-mode-p
|
||||
(+ligatures--enable-p +ligatures-in-modes))
|
||||
(in-mode-extras-p
|
||||
(and (featurep! +extra)
|
||||
(and (modulep! +extra)
|
||||
(+ligatures--enable-p +ligatures-extras-in-modes))))
|
||||
(when in-mode-p
|
||||
(if (boundp '+ligature--composition-table)
|
||||
@ -214,7 +214,7 @@ and cannot run in."
|
||||
|
||||
(defvar +ligatures--font-alist ())
|
||||
|
||||
(cond ((featurep! +fira) (load! "+fira"))
|
||||
((featurep! +iosevka) (load! "+iosevka"))
|
||||
((featurep! +hasklig) (load! "+hasklig"))
|
||||
((featurep! +pragmata-pro) (load! "+pragmata-pro")))))
|
||||
(cond ((modulep! +fira) (load! "+fira"))
|
||||
((modulep! +iosevka) (load! "+iosevka"))
|
||||
((modulep! +hasklig) (load! "+hasklig"))
|
||||
((modulep! +pragmata-pro) (load! "+pragmata-pro")))))
|
||||
|
Reference in New Issue
Block a user