From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dieter Wilhelm Newsgroups: gmane.emacs.help Subject: Re: efficient editing question (hot key , ccmode) Date: Wed, 22 Nov 2006 07:37:49 +0100 Organization: The Church of Emacs Message-ID: <87fycc2dhe.fsf@hans.local.net> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1164177512 17801 80.91.229.2 (22 Nov 2006 06:38:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Nov 2006 06:38:32 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 22 07:38:27 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GmlkW-00008O-Ou for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Nov 2006 07:38:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GmlkV-0008HY-3G for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Nov 2006 01:38:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GmlkC-0008Fz-5a for help-gnu-emacs@gnu.org; Wed, 22 Nov 2006 01:38:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GmlkB-0008El-C9 for help-gnu-emacs@gnu.org; Wed, 22 Nov 2006 01:38:03 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GmlkB-0008EU-74 for help-gnu-emacs@gnu.org; Wed, 22 Nov 2006 01:38:03 -0500 Original-Received: from [212.227.126.183] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GmlkA-00052M-TZ for help-gnu-emacs@gnu.org; Wed, 22 Nov 2006 01:38:03 -0500 Original-Received: from [84.167.61.162] (helo=duenenhof-wilhelm.de) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis), id 0MKwpI-1Gmlk83Tjm-0000qS; Wed, 22 Nov 2006 07:38:01 +0100 Original-Received: by duenenhof-wilhelm.de (Postfix, from userid 1000) id 24D5E756C3; Wed, 22 Nov 2006 07:37:49 +0100 (CET) Original-To: "Ronald" In-Reply-To: (Ronald's message of "Wed\, 22 Nov 2006 12\:06\:57 +0800") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Provags-ID: kundenserver.de abuse@kundenserver.de login:d7ab225b98a136e1c2910381f940ecb9 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:38875 Archived-At: "Ronald" writes: > "Kevin Rodgers" > ??????:mailman.951.1164126341.2155.help-gnu-emacs@gnu.org... >> Ronald wrote: >>> If I press ``M-(", there will be a space before `(' , >>> how to inhibit it? >> >> ,----[ C-h k M-( ] >> | M-( runs the command insert-parentheses >> | which is an interactive compiled Lisp function in `lisp.el'. >> | It is bound to M-(. >> | (insert-parentheses &optional arg) >> | >> | Enclose following arg sexps in parentheses. >> | Leave point after open-paren. >> | A negative arg encloses the preceding arg sexps instead. >> | No argument is equivalent to zero: just insert `()' and leave point >> between. >> | If `parens-require-spaces' is non-nil, this command also inserts a space >> | before and after, depending on the surrounding characters. >> | If region is active, insert enclosing characters at region boundaries. >> | >> | [back] >> `---- >> >>> And how to let ``{}" work in the same way? >> >> (global-set-key "\M-{" 'insert-pair) >> > Maybe I should get the function,``insert-pair",first. It's a standard Emacs (22) function. > >>> When the caret is in the middle of a line, >>> how to new a line and move the caret there automatically? >> >> If by caret you mean point: C-e RET > Maybe I should define something like C-; , who has less key strokes. When it's not taken already, why not? >> >> -- >> Kevin >> >> >> -- Best wishes H. Dieter Wilhelm Darmstadt, Germany