emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: Nuutti Kotivuori
Subject: [Orgmode] Re: "Create new heading after this one" command
Date: Wed, 19 Sep 2007 13:01:49 +0300
User-agent: Gnus/5.110006 (No Gnus v0.6) XEmacs/21.4.19 (linux)

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






reply via email to

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