From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jeremiah Dodds Newsgroups: gmane.emacs.help Subject: Re: electric pair mode and latex Date: Wed, 20 Jun 2012 08:41:57 -0400 Message-ID: <87zk7yp33e.fsf@friendface.i-did-not-set--mail-host-address--so-tickle-me> References: <4FE1626C.6070602@gmail.com> <87a9zyttu8.fsf@friendface.gateway.2wire.net> <4FE17A7A.8060504@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1340201550 10698 80.91.229.3 (20 Jun 2012 14:12:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 20 Jun 2012 14:12:30 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Laurent Hoeltgen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 20 16:12:29 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ShLe0-0000xe-Vt for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Jun 2012 16:12:29 +0200 Original-Received: from localhost ([::1]:48105 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShKEx-0000Ng-OX for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Jun 2012 08:42:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShKEb-0008C5-O2 for help-gnu-emacs@gnu.org; Wed, 20 Jun 2012 08:42:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShKEU-0006jE-Qq for help-gnu-emacs@gnu.org; Wed, 20 Jun 2012 08:42:09 -0400 Original-Received: from mail-gh0-f169.google.com ([209.85.160.169]:51714) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShKEU-0006is-JV for help-gnu-emacs@gnu.org; Wed, 20 Jun 2012 08:42:02 -0400 Original-Received: by ghrr18 with SMTP id r18so6387135ghr.0 for ; Wed, 20 Jun 2012 05:42:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=VLOwdMS2FXvpU7lbyrWMnoE2mc+Z9y48Ol9W2pcJC0s=; b=vB9cX+InuZLSNRwAzvNiHRuTDjK6OdTVFQ14Ioau1qphKyxBnu+AUu6GJ3x/5ykEbm TrNTiByFSsfj6tIiArVNAGTJ+QSKAJ87rTIbn/U4on0KdFOl1WhMe24Or+PQOVj3tJX5 NP8PxSmArHycjBhijTXIBv7qYwgXwiY+V+CKOJRtrEf3Yd6Iiaxto65WyQCTSOcaXxAc bFWPrSfmne50Kumntyd1Rm2ot4DU/r2a4RDKEeLv5+hEi/VrvCBZuWzjne9CMI0qI83g XOFBXOvmbOBJlltDrG/qtQg8Kmc3XkH8SBiGGw2WBfqV7legUcq68thsNarpAfs5G9g0 +fog== Original-Received: by 10.42.145.7 with SMTP id d7mr10390784icv.45.1340196120769; Wed, 20 Jun 2012 05:42:00 -0700 (PDT) Original-Received: from friendface (adsl-69-208-12-237.dsl.akrnoh.ameritech.net. [69.208.12.237]) by mx.google.com with ESMTPS id dw5sm15047630igc.6.2012.06.20.05.41.58 (version=SSLv3 cipher=OTHER); Wed, 20 Jun 2012 05:41:59 -0700 (PDT) In-Reply-To: <4FE17A7A.8060504@gmail.com> (Laurent Hoeltgen's message of "Wed, 20 Jun 2012 09:23:38 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85328 Archived-At: Laurent Hoeltgen writes: > On 06/20/2012 07:50 AM, Jeremiah Dodds wrote: >> Laurent Hoeltgen 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) ?