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
|
@ -3,7 +3,7 @@
|
|||
(defvar +irc--workspace-name "*IRC*")
|
||||
|
||||
(defun +irc-setup-wconf (&optional inhibit-workspace)
|
||||
(when (and (featurep! :ui workspaces)
|
||||
(when (and (modulep! :ui workspaces)
|
||||
(not inhibit-workspace))
|
||||
(+workspace-switch +irc--workspace-name 'auto-create))
|
||||
(let ((buffers (doom-buffers-in-mode 'circe-mode nil t)))
|
||||
|
@ -58,7 +58,7 @@ workspace for it."
|
|||
(cancel-timer +irc--defer-timer))
|
||||
(disable-circe-notifications)
|
||||
(mapc #'kill-buffer (doom-buffers-in-mode 'circe-mode (buffer-list) t))
|
||||
(when (featurep! :ui workspaces)
|
||||
(when (modulep! :ui workspaces)
|
||||
(when (equal (+workspace-current-name) +irc--workspace-name)
|
||||
(+workspace/delete +irc--workspace-name)))))
|
||||
|
||||
|
@ -68,8 +68,8 @@ workspace for it."
|
|||
argument) is non-nil only show channels in current server."
|
||||
(interactive "P")
|
||||
(call-interactively
|
||||
(cond ((featurep! :completion ivy) #'+irc/ivy-jump-to-channel)
|
||||
((featurep! :completion vertico) #'+irc/vertico-jump-to-channel)
|
||||
(cond ((modulep! :completion ivy) #'+irc/ivy-jump-to-channel)
|
||||
((modulep! :completion vertico) #'+irc/vertico-jump-to-channel)
|
||||
((user-error "No jump-to-channel backend is enabled. Enable vertico or ivy!")))))
|
||||
|
||||
;;;###autoload
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
;;; app/irc/autoload/ivy.el -*- lexical-binding: t; -*-
|
||||
;;;###if (featurep! :completion ivy)
|
||||
;;;###if (modulep! :completion ivy)
|
||||
|
||||
;;;###autoload
|
||||
(defun +irc/ivy-jump-to-channel (&optional this-server)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
;;; app/irc/autoload/vertico.el -*- lexical-binding: t; -*-
|
||||
;;;###if (featurep! :completion vertico)
|
||||
;;;###if (modulep! :completion vertico)
|
||||
|
||||
;;;###autoload
|
||||
(defun +irc/vertico-jump-to-channel ()
|
||||
|
|
|
@ -141,7 +141,7 @@ playback.")
|
|||
;; Fail gracefully if not in a circe buffer
|
||||
(global-set-key [remap tracking-next-buffer] #'+irc/tracking-next-buffer)
|
||||
|
||||
(when (featurep! :completion vertico)
|
||||
(when (modulep! :completion vertico)
|
||||
(after! consult
|
||||
(add-to-list 'consult-buffer-sources '+irc--consult-circe-source 'append)))
|
||||
|
||||
|
@ -198,7 +198,7 @@ playback.")
|
|||
(define-key lui-mode-map "\C-u" #'lui-kill-to-beginning-of-line)
|
||||
(setq lui-fill-type nil)
|
||||
|
||||
(when (featurep! :checkers spell)
|
||||
(when (modulep! :checkers spell)
|
||||
(setq lui-flyspell-p t))
|
||||
|
||||
(after! evil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue