From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Shortcut with CTRL-RET Date: Wed, 24 Jan 2007 18:00:24 +0100 Message-ID: References: <1169654231.067661.70620@l53g2000cwa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1169658169 24665 80.91.229.12 (24 Jan 2007 17:02:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 24 Jan 2007 17:02:49 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Frederic Mayot Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 24 18:02:41 2007 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 1H9lW9-0000wV-6d for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Jan 2007 18:02:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H9lW7-0004sv-Hb for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Jan 2007 12:02:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H9lU6-0003zb-1m for help-gnu-emacs@gnu.org; Wed, 24 Jan 2007 12:00:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H9lU4-0003xw-Da for help-gnu-emacs@gnu.org; Wed, 24 Jan 2007 12:00:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H9lU4-0003xf-3X for help-gnu-emacs@gnu.org; Wed, 24 Jan 2007 12:00:28 -0500 Original-Received: from fmmailgate02.web.de ([217.72.192.227]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H9lU3-0006qk-M8 for help-gnu-emacs@gnu.org; Wed, 24 Jan 2007 12:00:27 -0500 Original-Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate02.web.de (Postfix) with ESMTP id A16665553AA4; Wed, 24 Jan 2007 18:00:26 +0100 (CET) Original-Received: from [87.193.64.186] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.107 #114) id 1H9lU2-0001ba-00; Wed, 24 Jan 2007 18:00:26 +0100 In-Reply-To: <1169654231.067661.70620@l53g2000cwa.googlegroups.com> X-Image-Url: http://homepage.mac.com/sparifankal/.cv/thumbs/me.thumbnail X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de X-detected-kernel: Linux 2.4-2.6 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:40597 Archived-At: Am 24.01.2007 um 16:57 schrieb Frederic Mayot: > I would like to have a very convenient shortcut which exists on VS. > When pressing CTRL-RET, it adds a new line (nothing special) but it > places the cursor one line up and then indent. An example (|| > represents the cursor) You could create a keyboard macro, save it, and then bind it to C-RET. -- Greetings Pete When in doubt, use brute force. -- Ken Thompson