From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephan Schmitt Subject: Re: Re: Shortcut for adding text item? Date: Fri, 19 Feb 2010 10:53:56 +0100 Message-ID: <4B7E5FB4.40402@cs.tu-berlin.de> References: <211769421002181028n72f53fet9848b20cd544f95d@mail.gmail.com> <4B7D8DF6.3050204@cs.tu-berlin.de> <87635up2h8.fsf@dasa3.iem.pw.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NiPZN-0002i6-VU for emacs-orgmode@gnu.org; Fri, 19 Feb 2010 04:54:46 -0500 Received: from [140.186.70.92] (port=42980 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NiPZM-0002hy-SD for emacs-orgmode@gnu.org; Fri, 19 Feb 2010 04:54:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NiPZL-0004fG-AE for emacs-orgmode@gnu.org; Fri, 19 Feb 2010 04:54:44 -0500 Received: from mail.cs.tu-berlin.de ([130.149.17.13]:42333) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NiPZL-0004ev-4l for emacs-orgmode@gnu.org; Fri, 19 Feb 2010 04:54:43 -0500 Received: from localhost (localhost [127.0.0.1]) by localhost-12225.cs.tu-berlin.de (Postfix) with ESMTP id C722732A86 for ; Fri, 19 Feb 2010 10:54:41 +0100 (CET) In-Reply-To: <87635up2h8.fsf@dasa3.iem.pw.edu.pl> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?UTF-8?B?xYF1a2FzeiBTdGVsbWFjaA==?= Cc: emacs-orgmode@gnu.org Hi =C5=81ukasz, > Stephan Schmitt writes: >=20 >> Also sprach Nathan Neff: >>> For example, I have a headline, with the cursor at position: >>> >>> * Something >>> >>> And I want to add a text line under the heading, with proper indentat= ion. >>> >>> Currently, I press Ctrl-E, then Return, but I'd like to have a >>> shortcut like M-j or something like that. >> put this in your dotemacs file: >> >> (eval-after-load "org" >> '(org-defkey org-mode-map (kbd "M-j") >> (lambda () (interactive) (end-of-line) (org-return-indent)))) >> Also sprach =C5=81ukasz Stelmach: >=20 > How about unfolding subtree? >=20 good point... (org-defkey org-mode-map (kbd "M-j") '(lambda () (interactive) (org-show-subtree) (end-of-line) (org-return-indent))) Greetings, Stephan