0

Using evil-surround, how could one craft a function to surround the full word at point with \(..\)?

One might start by adding the bind i (which stands for "inline" or "latex inline math mode") to evil-surround-pairs-alist:

(setq-default evil-surround-pairs-alist
              (push '(?i . ("\\(" . "\\)")) evil-surround-pairs-alist))

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.