From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Redefine "(" and ")" keys in every mode Date: Sat, 3 Jan 2009 13:57:50 -0800 Message-ID: <002001c96dee$52946230$0200a8c0@us.oracle.com> References: <21265910.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1231019906 11316 80.91.229.12 (3 Jan 2009 21:58:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Jan 2009 21:58:26 +0000 (UTC) To: "'TheLonelyStar'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 03 22:59:35 2009 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 1LJEWr-0007zG-GQ for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Jan 2009 22:59:33 +0100 Original-Received: from localhost ([127.0.0.1]:41572 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJEVZ-0001jy-9N for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Jan 2009 16:58:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LJEVF-0001jU-B5 for help-gnu-emacs@gnu.org; Sat, 03 Jan 2009 16:57:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LJEVB-0001j7-ON for help-gnu-emacs@gnu.org; Sat, 03 Jan 2009 16:57:51 -0500 Original-Received: from [199.232.76.173] (port=60315 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJEVB-0001j4-LU for help-gnu-emacs@gnu.org; Sat, 03 Jan 2009 16:57:49 -0500 Original-Received: from acsinet12.oracle.com ([141.146.126.234]:55671) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LJEVA-0008Hf-PO for help-gnu-emacs@gnu.org; Sat, 03 Jan 2009 16:57:49 -0500 Original-Received: from acsinet13.oracle.com (acsinet13.oracle.com [141.146.126.235]) by acsinet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n03LvGIT023306 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 3 Jan 2009 21:57:17 GMT Original-Received: from acsmt701.oracle.com (acsmt701.oracle.com [141.146.40.71]) by acsinet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n03LwIwI019300; Sat, 3 Jan 2009 21:58:19 GMT Original-Received: from dradamslap1 (/141.144.168.6) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 03 Jan 2009 21:57:41 +0000 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <21265910.post@talk.nabble.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 Thread-Index: Aclt30gCRzD1UXD3R9GmlvOwWJ4bgQADfTLw X-Source-IP: acsmt701.oracle.com [141.146.40.71] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090205.495FDF57.00C6:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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:61041 Archived-At: > I use the following functions (bellow) for redifine the > insertions if ( and ). The Idea is: When I type (, I want () > inserted. When I type ) and the next character is ), I want > to just jump over it. See commands `insert-parentheses' (`M-(' in Emacs Lisp mode), `move-past-close-and-reindent' (`M-)' in Emacs Lisp mode), `insert-pair', and `delete-pair'. See also: http://www.emacswiki.org/emacs/ElectricPair http://www.emacswiki.org/emacs/parenthesis.el http://www.emacswiki.org/emacs/SkeletonMode#toc11