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: Tue, 16 Oct 2007 13:23:41 +0300
User-agent: Gnus/5.110006 (No Gnus v0.6) XEmacs/21.4.19 (linux)

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





reply via email to

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