Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
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.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
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. Listen and type the numbers you hear
 
Laurent Hoeltgen  
View profile  
 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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeremiah Dodds  
View profile  
 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'

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Laurent Hoeltgen  
View profile  
 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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeremiah Dodds  
View profile  
 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) ?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andreas Röhler  
View profile  
 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

https://blueprints.launchpad.net/s-x-emacs-werkstatt/+spec/electric


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stefan Monnier  
View profile  
 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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Laurent Hoeltgen  
View profile  
 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:

http://inthearmchair.wordpress.com/2008/11/01/automatically-inserting...

which does exactly what I want.

Regards,
Laurent


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »