Add prx macro for eshell regexes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user