From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nuutti Kotivuori Subject: Re: "Create new heading after this one" command Date: Tue, 16 Oct 2007 13:23:41 +0300 Message-ID: <877ilnmk7m.fsf@aka.i.naked.iki.fi> References: <87y7f4t1s8.fsf@aka.i.naked.iki.fi> <532f1c40df3bc78dbc4255f25df4e5e3@science.uva.nl> <87ir67t1ma.fsf@aka.i.naked.iki.fi> 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 1Ihjgm-0003p8-OC for emacs-orgmode@gnu.org; Tue, 16 Oct 2007 06:30:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ihjgl-0003oo-Ap for emacs-orgmode@gnu.org; Tue, 16 Oct 2007 06:30:15 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ihjgl-0003ol-6z for emacs-orgmode@gnu.org; Tue, 16 Oct 2007 06:30: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 1Ihjgk-0003y9-DO for emacs-orgmode@gnu.org; Tue, 16 Oct 2007 06:30:14 -0400 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1IhjgY-0004H0-3s for emacs-orgmode@gnu.org; Tue, 16 Oct 2007 10:30:02 +0000 Received: from naked.iki.fi ([62.142.249.112]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Oct 2007 10:30:02 +0000 Received: from naked by naked.iki.fi with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Oct 2007 10:30:02 +0000 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 Nuutti Kotivuori wrote: > 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. I've been using this since I got the snippet. My keybinding for it is simply C-M-RET, which seems to work well enough. I couldn't really live without this anymore - the only use for M-RET I have (outside of text lists) is for a specific case which I will mention in another posting. -- Naked