[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: electric pair mode and latex
From: |
Jeremiah Dodds |
Subject: |
Re: electric pair mode and latex |
Date: |
Wed, 20 Jun 2012 08:41:57 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
Laurent Hoeltgen <hoeltgman@gmail.com> writes:
> On 06/20/2012 07:50 AM, Jeremiah Dodds wrote:
>> Laurent Hoeltgen <hoeltgman@gmail.com> writes:
>>
>>> Hi,
>>>
>>> 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.
Perhaps you can get something working with skeleton-mode
(http://www.emacswiki.org/emacs/SkeletonPair) ?