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.
23 lines
855 B
EmacsLisp
23 lines
855 B
EmacsLisp
;; tools/eval/autoload/evil.el -*- lexical-binding: t; -*-
|
|
;;;###if (modulep! :editor evil)
|
|
|
|
;;;###autoload (autoload '+eval:region "tools/eval/autoload/evil" nil t)
|
|
(evil-define-operator +eval:region (beg end)
|
|
"Evaluate selection or sends it to the open REPL, if available."
|
|
:move-point nil
|
|
(interactive "<r>")
|
|
(+eval/region beg end))
|
|
|
|
;;;###autoload (autoload '+eval:replace-region "tools/eval/autoload/evil" nil t)
|
|
(evil-define-operator +eval:replace-region (beg end)
|
|
"Evaluate selection and replace it with its result."
|
|
:move-point nil
|
|
(interactive "<r>")
|
|
(+eval/region-and-replace beg end))
|
|
|
|
;;;###autoload (autoload '+eval:repl "tools/eval/autoload/evil" nil t)
|
|
(evil-define-operator +eval:repl (_beg _end)
|
|
"Open REPL and send the current selection to it."
|
|
:move-point nil
|
|
(interactive "<r>")
|
|
(+eval/open-repl-other-window))
|