cute-jumper / evil-embrace.el

Evil integration of embrace.el
50 stars 5 forks source link

Cannot use LaTeX mode command regular expression #8

Closed andrasbarany closed 2 years ago

andrasbarany commented 2 years ago

When I'm on a LaTeX command, say textbf, and want do delete it, I can use evil-embrace to delete \textbf{...} around the string .... This works for other specified commands, too, but not for the regular expression defined in evil's config.el:

  (defun +evil-embrace-latex-mode-hook-h ()
    (embrace-add-pair-regexp ?l "\\[a-z]+{" "}" #'+evil--embrace-latex))

When I try deleting any command using l, I get the message "No such a pair found". How can I get this regular expression to work?

I am using an up-to-date doom emacs.