electric pair mode automatically closes parentheses like (,[,{,... Can I
customize this such that when I edit a latex document it also closes
expressions like \left( with \right)?
> electric pair mode automatically closes parentheses like (,[,{,... Can I
> customize this such that when I edit a latex document it also closes
> expressions like \left( with \right)?
>> electric pair mode automatically closes parentheses like (,[,{,... Can I
>> customize this such that when I edit a latex document it also closes
>> expressions like \left( with \right)?
>> Regards,
>> Laurent
> Yup, see 'electric-pair-pairs'
Hi,
if I try to change this option (through the customize interface) by
adding \left( and \right) to the list, emacs complains with the
following message:
Saving electric-pair-pairs: This field should contain a single character.
>>> electric pair mode automatically closes parentheses like (,[,{,... Can I
>>> customize this such that when I edit a latex document it also closes
>>> expressions like \left( with \right)?
>>> Regards,
>>> Laurent
>> Yup, see 'electric-pair-pairs'
> Hi,
> if I try to change this option (through the customize interface) by
> adding \left( and \right) to the list, emacs complains with the
> following message:
> Saving electric-pair-pairs: This field should contain a single character.
> Regards,
> Laurent
Sorry for the disinfo, I didn't actually attempt to customize it, only
saw that it was customizable, and assumed that it would allow arbitrary,
as opposed to single-character-only pair definitions.
> electric pair mode automatically closes parentheses like (,[,{,... Can I
> customize this such that when I edit a latex document it also closes
> expressions like \left( with \right)?
> electric pair mode automatically closes parentheses like (,[,{,... Can I
> customize this such that when I edit a latex document it also closes
> expressions like \left( with \right)?
I don't think you can right now. But patches to enable such things
would be welcome,
>>>> electric pair mode automatically closes parentheses like (,[,{,... Can I
>>>> customize this such that when I edit a latex document it also closes
>>>> expressions like \left( with \right)?
>>>> Regards,
>>>> Laurent
>>> Yup, see 'electric-pair-pairs'
>> Hi,
>> if I try to change this option (through the customize interface) by
>> adding \left( and \right) to the list, emacs complains with the
>> following message:
>> Saving electric-pair-pairs: This field should contain a single character.
>> Regards,
>> Laurent
> Sorry for the disinfo, I didn't actually attempt to customize it, only
> saw that it was customizable, and assumed that it would allow arbitrary,
> as opposed to single-character-only pair definitions.