Skip to content

Change pair and add new pair #1126

Answered by Fuco1
k4leg asked this question in Q&A
Discussion options

You must be logged in to vote

Hi. Unfortunatelly the sp-tags functionality was removed couple years ago and there is no replacement.

For the " to be used as a trigger you must unbind TeX-insert-quote because it does its own processing.

Then you must disable " and ' pairs because they have special handling of string syntax and it messes things up. This is a latex compat issue.

(sp-local-pair 'latex-mode "'" "'" :actions nil)
(sp-local-pair 'latex-mode "\"" "\"" :actions nil)

After this, it works fine. For the \, you can setup a post handler.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by k4leg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants