The old Google Groups will be going away soon, but your browser is incompatible with the new version.
electric pair mode and latex
 There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic. There was an error processing your request. Please try again. Standard view   View as tree
 7 messages

From:
To:
Cc:
Followup To:
Subject:
 Validation: For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon.

More options Jun 20 2012, 1:41 am
Newsgroups: gnu.emacs.help
From: Laurent Hoeltgen <hoeltg...@gmail.com>
Date: Wed, 20 Jun 2012 07:41:00 +0200
Subject: electric pair mode and latex
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

To post a message you must first join this group.
You do not have the permission required to post.
More options Jun 20 2012, 1:50 am
Newsgroups: gnu.emacs.help
From: Jeremiah Dodds <jeremiah.do...@gmail.com>
Date: Wed, 20 Jun 2012 01:50:39 -0400
Local: Wed, Jun 20 2012 1:50 am
Subject: Re: electric pair mode and latex

Laurent Hoeltgen <hoeltg...@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'

To post a message you must first join this group.
You do not have the permission required to post.
More options Jun 20 2012, 3:23 am
Newsgroups: gnu.emacs.help
From: Laurent Hoeltgen <hoeltg...@gmail.com>
Date: Wed, 20 Jun 2012 09:23:38 +0200
Local: Wed, Jun 20 2012 3:23 am
Subject: Re: electric pair mode and latex
On 06/20/2012 07:50 AM, Jeremiah Dodds wrote:

> Laurent Hoeltgen <hoeltg...@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

To post a message you must first join this group.
You do not have the permission required to post.
More options Jun 20 2012, 8:41 am
Newsgroups: gnu.emacs.help
From: Jeremiah Dodds <jeremiah.do...@gmail.com>
Date: Wed, 20 Jun 2012 08:41:57 -0400
Local: Wed, Jun 20 2012 8:41 am
Subject: Re: electric pair mode and latex

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) ?

To post a message you must first join this group.
You do not have the permission required to post.
More options Jun 20 2012, 9:58 am
Newsgroups: gnu.emacs.help
From: Andreas Röhler <andreas.roeh...@easy-emacs.de>
Date: Wed, 20 Jun 2012 15:58:46 +0200
Local: Wed, Jun 20 2012 9:58 am
Subject: Re: electric pair mode and latex
Am 20.06.2012 07:41, schrieb Laurent Hoeltgen:

> 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

noted, as it's not so far away

To post a message you must first join this group.
You do not have the permission required to post.
More options Jun 20 2012, 12:15 pm
Newsgroups: gnu.emacs.help
From: Stefan Monnier <monn...@iro.umontreal.ca>
Date: Wed, 20 Jun 2012 12:15:48 -0400
Local: Wed, Jun 20 2012 12:15 pm
Subject: Re: electric pair mode and latex

> 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,

Stefan

To post a message you must first join this group.
You do not have the permission required to post.
More options Jun 20 2012, 11:16 pm
Newsgroups: gnu.emacs.help
From: Laurent Hoeltgen <hoeltg...@gmail.com>
Date: Thu, 21 Jun 2012 05:16:32 +0200
Local: Wed, Jun 20 2012 11:16 pm
Subject: Re: electric pair mode and latex
On 06/20/2012 02:41 PM, Jeremiah Dodds wrote:

Hi,

after a bit of googling I actually found this:

which does exactly what I want.

Regards,
Laurent