Add PRX macro from Howardism talk

This commit is contained in:
MitchMarq42 2023-01-03 11:52:16 -09:00
parent 5b45e3d385
commit c9adcdaf46

View File

@ -918,5 +918,14 @@ Return nil if DIR is not in a hugo project at all."
(elpaca-use-package (cheat-sh :host github :repo "davep/cheat-sh.el")
:commands cheat-sh)
(elpaca-use-package (pcre2el
:host github
:repo "joddie/pcre2el")
:config
(defmacro prx (&rest expressions)
"Convert the rx-compatible regular EXPRESSIONS to PCRE.
Most shell applications accept Perl Compatible Regular Expressions."
`(rxt-elisp-to-pcre (rx ,@expressions))))
(provide 'mitch-packages)
;;; mitch-packages.el ends here