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
|
@ -1,5 +1,5 @@
|
|||
;;; lang/org/autoload/contrib-ipython.el -*- lexical-binding: t; -*-
|
||||
;;;###if (featurep! +ipython)
|
||||
;;;###if (modulep! +ipython)
|
||||
|
||||
;;;###autoload
|
||||
(defun +org-ob-ipython-initiate-session-a (&optional session params)
|
||||
|
@ -115,7 +115,7 @@ This function is called by `org-babel-execute-src-block'."
|
|||
(cdr (assoc :pydir (nth 2 info))))))
|
||||
(ob-ipython-mode 1)
|
||||
;; hack on company mode to use company-capf rather than company-anaconda
|
||||
(when (featurep! :completion company)
|
||||
(when (modulep! :completion company)
|
||||
(setq-local company-backends
|
||||
'(company-capf
|
||||
company-dabbrev
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
;;; lang/org/autoload/contrib-present.el -*- lexical-binding: t; -*-
|
||||
;;;###if (featurep! +present)
|
||||
;;;###if (modulep! +present)
|
||||
|
||||
;;
|
||||
;;; Helpers
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
;;; lang/org/autoload/contrib-roam2.el -*- lexical-binding: t; -*-
|
||||
;;;###if (featurep! +roam2)
|
||||
;;;###if (modulep! +roam2)
|
||||
|
||||
;;; Custom node accessors
|
||||
;;;###autoload (autoload 'org-roam-node-doom-filetitle "lang/org/autoload/contrib-roam2" nil t)
|
||||
|
|
|
@ -437,7 +437,7 @@ Made for `org-tab-first-hook' in evil-mode."
|
|||
(defun +org-yas-expand-maybe-h ()
|
||||
"Expand a yasnippet snippet, if trigger exists at point or region is active.
|
||||
Made for `org-tab-first-hook'."
|
||||
(when (and (featurep! :editor snippets)
|
||||
(when (and (modulep! :editor snippets)
|
||||
(require 'yasnippet nil t)
|
||||
(bound-and-true-p yas-minor-mode))
|
||||
(and (let ((major-mode (cond ((org-in-src-block-p t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue