From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: How to complete \] when I input \[ . Date: Sat, 16 Aug 2008 16:55:33 +0200 Message-ID: <87od3tovq2.fsf@tux.homenetwork> References: <878wuxksn4.fsf@localhorst.mine.nu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1218898761 28805 80.91.229.12 (16 Aug 2008 14:59:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Aug 2008 14:59:21 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "xiaopeng hu" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 16 17:00:12 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 1KUNG3-0000xm-7x for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Aug 2008 16:59:59 +0200 Original-Received: from localhost ([127.0.0.1]:33471 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KUNF6-0003bp-JX for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Aug 2008 10:59:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KUNEl-0003bg-Iz for help-gnu-emacs@gnu.org; Sat, 16 Aug 2008 10:58:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KUNEj-0003aE-Vd for help-gnu-emacs@gnu.org; Sat, 16 Aug 2008 10:58:39 -0400 Original-Received: from [199.232.76.173] (port=56787 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KUNEj-0003a9-T1 for help-gnu-emacs@gnu.org; Sat, 16 Aug 2008 10:58:37 -0400 Original-Received: from ug-out-1314.google.com ([66.249.92.170]:41792) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KUNEj-0001Zb-G7 for help-gnu-emacs@gnu.org; Sat, 16 Aug 2008 10:58:37 -0400 Original-Received: by ug-out-1314.google.com with SMTP id m2so91291uge.17 for ; Sat, 16 Aug 2008 07:58:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=Q4f5pQ7E56bHZDBr/mOpjmH2KNoxKLNOGJ7bUdmcBPU=; b=IsOOTI6irc8DIiM/TNAg+beyZToBhTFlX+fekAh6PPZuJZCMeIeFuFveEr6xHm8HGO X7HyA7xEqK58Bxo03myBFfaeQhbYskcMD71SFa58dHeITrRKFECmKtwDs5jvgRfg4rDt d8ZBr/XaszWQgCur6434QRsBN/VH6mZKxBVy4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=vomF33zfaUoU1HRgF4UdWV737U9kZMVvtdNjWFpPMRlugrCgNF3hVnHmkbuX9WUnDm ICuh/L72S/RHD7wJvjJQ3FmAaCemhIatKIKDqPj4pr4NtWMTCAgwyWgORuD8pjJ/JtzF iNhRWD2ATdT4spCtaE4/EyKBkzOLMxpHJexz8= Original-Received: by 10.67.28.14 with SMTP id f14mr1817691ugj.85.1218898714405; Sat, 16 Aug 2008 07:58:34 -0700 (PDT) Original-Received: from tux.homenetwork ( [77.197.77.49]) by mx.google.com with ESMTPS id x33sm600968ugc.52.2008.08.16.07.58.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 16 Aug 2008 07:58:33 -0700 (PDT) In-Reply-To: (xiaopeng hu's message of "Sat, 16 Aug 2008 22:00:35 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) 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:56715 Archived-At: "xiaopeng hu" writes: > 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 ,---- | (defun insert-second-hook () | (interactive) | (insert "\[\\]") | (goto-char (- (point) 2))) | (global-set-key (kbd "\[") 'insert-second-hook) `---- -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France