From mboxrd@z Thu Jan 1 00:00:00 1970 From: Renzo Been Subject: Re: "Create new heading after this one" command Date: Sun, 23 Sep 2007 07:35:59 +0000 (UTC) Message-ID: References: <87y7f4t1s8.fsf@aka.i.naked.iki.fi> <532f1c40df3bc78dbc4255f25df4e5e3@science.uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IZM1E-0008FV-Ob for emacs-orgmode@gnu.org; Sun, 23 Sep 2007 03:36:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IZM1D-0008FJ-9d for emacs-orgmode@gnu.org; Sun, 23 Sep 2007 03:36:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZM1D-0008FG-3N for emacs-orgmode@gnu.org; Sun, 23 Sep 2007 03:36:43 -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 1IZM1C-0002zU-Ng for emacs-orgmode@gnu.org; Sun, 23 Sep 2007 03:36:42 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IZM0u-00081Q-CO for emacs-orgmode@gnu.org; Sun, 23 Sep 2007 07:36:24 +0000 Received: from 239.192-78-194.adsl-fix.skynet.be ([194.78.192.239]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Sep 2007 07:36:24 +0000 Received: from swangdoodles by 239.192-78-194.adsl-fix.skynet.be with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Sep 2007 07:36:24 +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 Carsten Dominik science.uva.nl> writes: ,----- | ...And you could add an extra line to the end of | the command like this: | | (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) | (org-todo)) | | In that way it works real nice together with | TODO-cycling: | | #+SEQ_TODO: TODO(t) NEXT(n) INPROGRESS(i@) SOMEDAY(s) WAITING(w@) | DONE(d) CANCELED(c@) | #+STARTUP: lognotestate | | You'll get to chose what type your new heading | should be... | | Ciao | Renzo `-----