From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nuutti Kotivuori Subject: Re: "Create new heading after this one" command Date: Wed, 19 Sep 2007 13:01:49 +0300 Message-ID: <87ir67t1ma.fsf@aka.i.naked.iki.fi> References: <87y7f4t1s8.fsf@aka.i.naked.iki.fi> <532f1c40df3bc78dbc4255f25df4e5e3@science.uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IXwNu-0000bN-HN for emacs-orgmode@gnu.org; Wed, 19 Sep 2007 06:02:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IXwNr-0000aC-K5 for emacs-orgmode@gnu.org; Wed, 19 Sep 2007 06:02:17 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXwNr-0000a9-AA for emacs-orgmode@gnu.org; Wed, 19 Sep 2007 06:02:15 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IXwNq-0005z1-Ot for emacs-orgmode@gnu.org; Wed, 19 Sep 2007 06:02:14 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IXwNg-0005rg-OZ for emacs-orgmode@gnu.org; Wed, 19 Sep 2007 12:02:04 +0200 Received: from naked.iki.fi ([62.142.249.112]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Sep 2007 12:02:04 +0200 Received: from naked by naked.iki.fi with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Sep 2007 12:02:04 +0200 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: emacs-orgmode@gnu.org Carsten Dominik wrote: > I guess this would be as easy as > > (defun org-new-heading-after-current () > "Insert a new heading with same level as current, after current > subtree." > (interactive) > (org-back-to-heading) > (org-insert-heading) > (org-move-subtree-down) > (end-of-line 1)) Works like a dream, thanks! > Any suggestions for a keybinding? Well, it has to be a single keypress, like M-RET - but I'm afraid I don't know org-mode well enough to give a good suggestion. -- Naked