Add prx macro for eshell regexes

This commit is contained in:
2024-09-16 00:31:22 -07:00
parent 57ab5e8f73
commit 193a80d3df

View File

@@ -81,6 +81,13 @@ any directory proferred by `consult-dir'."
(t (eshell/cd (if regexp (eshell-find-previous-directory regexp)
(completing-read "cd: " eshell-dirs))))))))
(use-package pcre2el
:ensure t
:config
(defmacro prx (&rest rx-sexp)
"Convert rx-compatible regular expressions to PCRE."
`(rxt-elisp-to-pcre (rx ,@rx-sexp))))
(use-package eshell-toggle
:ensure t
:custom