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/contrib/brain.el -*- lexical-binding: t; -*-
|
||||
;;;###if (featurep! +brain)
|
||||
;;;###if (modulep! +brain)
|
||||
|
||||
(use-package! org-brain
|
||||
:defer t
|
||||
|
@ -18,7 +18,7 @@
|
|||
org-capture-templates
|
||||
:key #'car :test #'equal)
|
||||
|
||||
(when (featurep! :editor evil +everywhere)
|
||||
(when (modulep! :editor evil +everywhere)
|
||||
;; TODO Make a proper evil keybind scheme for org-brain
|
||||
;; REVIEW This should be handled upstream by evil-collection
|
||||
(set-evil-initial-state!
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
;;; lang/org/contrib/dragndrop.el -*- lexical-binding: t; -*-
|
||||
;;;###if (featurep! +dragndrop)
|
||||
;;;###if (modulep! +dragndrop)
|
||||
|
||||
(use-package! org-download
|
||||
:commands
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
;;; lang/org/contrib/babel.el -*- lexical-binding: t; -*-
|
||||
;;;###if (featurep! +ipython)
|
||||
;;;###if (modulep! +ipython)
|
||||
|
||||
(use-package! ob-ipython
|
||||
:defer t
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
;;; lang/org/contrib/journal.el -*- lexical-binding: t; -*-
|
||||
;;;###if (featurep! +journal)
|
||||
;;;###if (modulep! +journal)
|
||||
|
||||
(use-package! org-journal
|
||||
:defer t
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
;;; lang/org/contrib/jupyter.el -*- lexical-binding: t; -*-
|
||||
;;;###if (featurep! +jupyter)
|
||||
;;;###if (modulep! +jupyter)
|
||||
|
||||
(use-package! ob-jupyter
|
||||
:defer t
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
;;; lang/org/contrib/noter.el -*- lexical-binding: t; -*-
|
||||
;;;###if (featurep! +noter)
|
||||
;;;###if (modulep! +noter)
|
||||
|
||||
(use-package! org-noter
|
||||
:defer t
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
;;; lang/org/contrib/pomodoro.el -*- lexical-binding: t; -*-
|
||||
;;;###if (featurep! +pomodoro)
|
||||
;;;###if (modulep! +pomodoro)
|
||||
|
||||
(after! org-pomodoro
|
||||
;; prefer PulseAudio to ALSA in $current_year
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
;;; lang/org/contrib/present.el -*- lexical-binding: t; -*-
|
||||
;;;###if (featurep! +present)
|
||||
;;;###if (modulep! +present)
|
||||
|
||||
(defvar +org-present-text-scale 5
|
||||
"The `text-scale-amount' for `org-tree-slide-mode'.")
|
||||
|
@ -40,7 +40,7 @@ headings as titles, and you have more freedom to place them wherever you like.")
|
|||
(add-hook 'org-tree-slide-play-hook #'+org-present-hide-blocks-h)
|
||||
(add-hook 'org-tree-slide-stop-hook #'+org-present-hide-blocks-h)
|
||||
|
||||
(when (featurep! :editor evil)
|
||||
(when (modulep! :editor evil)
|
||||
(map! :map org-tree-slide-mode-map
|
||||
:n [C-right] #'org-tree-slide-move-next-tree
|
||||
:n [C-left] #'org-tree-slide-move-previous-tree)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
;;; lang/org/contrib/pretty.el -*- lexical-binding: t; -*-
|
||||
;;;###if (featurep! +pretty)
|
||||
;;;###if (modulep! +pretty)
|
||||
(after! org
|
||||
(setq org-highlight-latex-and-related '(native script entities)))
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
;;; lang/org/contrib/roam.el -*- lexical-binding: t; -*-
|
||||
;;;###if (featurep! +roam)
|
||||
;;;###if (modulep! +roam)
|
||||
|
||||
(defvar +org-roam-open-buffer-on-find-file t
|
||||
"If non-nil, open the org-roam buffer when opening an org roam file.")
|
||||
|
@ -67,9 +67,9 @@
|
|||
org-roam-link-use-custom-faces 'everywhere
|
||||
org-roam-completion-everywhere t
|
||||
org-roam-completion-system
|
||||
(cond ((featurep! :completion helm) 'helm)
|
||||
((featurep! :completion ivy) 'ivy)
|
||||
((featurep! :completion ido) 'ido)
|
||||
(cond ((modulep! :completion helm) 'helm)
|
||||
((modulep! :completion ivy) 'ivy)
|
||||
((modulep! :completion ido) 'ido)
|
||||
('default)))
|
||||
|
||||
;; Normally, the org-roam buffer doesn't open until you explicitly call
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
;;; lang/org/contrib/roam2.el -*- lexical-binding: t; -*-
|
||||
;;;###if (featurep! +roam2)
|
||||
;;;###if (modulep! +roam2)
|
||||
|
||||
(defvar +org-roam-auto-backlinks-buffer nil
|
||||
"If non-nil, open and close the org-roam backlinks buffer automatically.
|
||||
|
@ -160,7 +160,7 @@ In case of failure, fail gracefully."
|
|||
"r" #'org-roam-ref-add
|
||||
"R" #'org-roam-ref-remove))
|
||||
|
||||
(when (featurep! :editor evil +everywhere)
|
||||
(when (modulep! :editor evil +everywhere)
|
||||
(add-hook! 'org-roam-mode-hook
|
||||
(defun +org-roam-detach-magit-section-mode-map-h ()
|
||||
"Detach `magit-section-mode-map' from `org-roam-mode-map'.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue