From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "xiaopeng hu" Newsgroups: gmane.emacs.help Subject: Re: How to complete \] when I input \[ . Date: Sat, 16 Aug 2008 22:00:35 +0800 Message-ID: References: <878wuxksn4.fsf@localhorst.mine.nu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_42065_19311643.1218895235336" X-Trace: ger.gmane.org 1218895268 20629 80.91.229.12 (16 Aug 2008 14:01:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Aug 2008 14:01:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 16 16:01:59 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KUMLt-0001DC-Vk for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Aug 2008 16:01:58 +0200 Original-Received: from localhost ([127.0.0.1]:44846 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KUMKx-0003Iy-44 for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Aug 2008 10:00:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KUMKc-0003IS-BK for help-gnu-emacs@gnu.org; Sat, 16 Aug 2008 10:00:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KUMKb-0003HX-15 for help-gnu-emacs@gnu.org; Sat, 16 Aug 2008 10:00:37 -0400 Original-Received: from [199.232.76.173] (port=55920 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KUMKa-0003HT-U3 for help-gnu-emacs@gnu.org; Sat, 16 Aug 2008 10:00:36 -0400 Original-Received: from wa-out-1112.google.com ([209.85.146.179]:29000) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KUMKa-000710-BL for help-gnu-emacs@gnu.org; Sat, 16 Aug 2008 10:00:36 -0400 Original-Received: by wa-out-1112.google.com with SMTP id m34so913571wag.10 for ; Sat, 16 Aug 2008 07:00:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=+GkcF8p7U87WsUvmWA/R4SYZVzOq1+7mRViODdvdNvk=; b=uvCVvVY87WaKvJz3px16A5b2UOosJpJZ/8ETFEznS1alj1YLl39UnGxTBxQoIMFJOn R+/QmuuQl462+uavgoha9IMkajxGGCdTdzTFcmvYuh6Dl//GHvf7dB2dYg3jDiygcaYb 2Io85hnla3W9K/e7Vxb7dzoqGrbhB1IyC1+To= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=OSX/mvLSSpC2uug9Mye54LT94HRBsUxdr4BYB8bWzEpABF8RfSwl/kbnGly5zAlB/Z jPZjmRug2NcDGVafveo/GhzTt8ahsyCk5pCP1l1hUbi1dbB2EpCKp3vsQuvn3IqUDQfz tK6Q/kMV3P+n97hA0a9xZl+Z5UG4hIyNk2SfY= Original-Received: by 10.115.33.1 with SMTP id l1mr3655195waj.228.1218895235340; Sat, 16 Aug 2008 07:00:35 -0700 (PDT) Original-Received: by 10.115.111.14 with HTTP; Sat, 16 Aug 2008 07:00:35 -0700 (PDT) In-Reply-To: <878wuxksn4.fsf@localhorst.mine.nu> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:56711 Archived-At: ------=_Part_42065_19311643.1218895235336 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline I mean \[ \]. thanks 2008/8/16 David Hansen > On Sat, 16 Aug 2008 21:09:46 +0800 xiaopeng hu wrote: > > > When I input \[ , how to complete \] and put point at middle? > > > > Should work: > > (global-set-key (kbd "[") #'insert-pair) > > David > > > > ------=_Part_42065_19311643.1218895235336 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline
I mean \[ \].  thanks

2008/8/16 David Hansen <david.hansen@gmx.net>
On Sat, 16 Aug 2008 21:09:46 +0800 xiaopeng hu wrote:

> When I input \[ , how to complete \] and put point at middle?
>

Should work:

(global-set-key (kbd "[") #'insert-pair)

David




------=_Part_42065_19311643.1218895235336--