emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Renzo Been <swangdoodles@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: "Create new heading after this one" command
Date: Sun, 23 Sep 2007 07:35:59 +0000 (UTC)	[thread overview]
Message-ID: <loom.20070923T073451-957@post.gmane.org> (raw)
In-Reply-To: 532f1c40df3bc78dbc4255f25df4e5e3@science.uva.nl

Carsten Dominik <dominik <at> 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
`-----

      parent reply	other threads:[~2007-09-23  7:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-18 15:45 "Create new heading after this one" command Nuutti Kotivuori
2007-09-18 17:38 ` Carsten Dominik
2007-09-19  1:05   ` Bastien
2007-09-20  7:14     ` Rainer Stengele
2007-09-19 10:01   ` Nuutti Kotivuori
2007-10-16 10:23     ` Nuutti Kotivuori
2007-09-23  7:35   ` Renzo Been [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20070923T073451-957@post.gmane.org \
    --to=swangdoodles@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).