[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] "Create new heading after this one" command

From: Carsten Dominik
Subject: Re: [Orgmode] "Create new heading after this one" command
Date: Tue, 18 Sep 2007 19:38:56 +0200

On Sep 18, 2007, at 17:45, Nuutti Kotivuori wrote:

For this, all, I have two alternative suggestions:

Either: Make C-e M-RET consistently make a new heading below the
current one - regardless of folding and leaving any text associated
with the current heading alone. But this may be difficult, considering
that folding seems to be a bit troublesome at times.

Or, simply: Add a new command which creates a new heading after the
current one, regardless where the point is on the line, at the same
level the current heading is. This command could work also in the text
part of headings, like lists - always creating headings, unlike
M-RET. Prefix argument on this command could create the heading before
the current one, though I'm not sure if it would be terribly useful. A
variation, creating a subheading (one level deeper) of the current
item could be useful, but since that can be achieved with the former
by just pressing M-right after the command, I don't think this one is
too useful either.

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."
  (end-of-line 1))

Any suggestions for a keybinding?

- Carsten

reply via email to

[Prev in Thread] Current Thread [Next in Thread]