From: Nuutti Kotivuori <naked@iki.fi>
To: emacs-orgmode@gnu.org
Subject: Re: "Create new heading after this one" command
Date: Tue, 16 Oct 2007 13:23:41 +0300 [thread overview]
Message-ID: <877ilnmk7m.fsf@aka.i.naked.iki.fi> (raw)
In-Reply-To: 87ir67t1ma.fsf@aka.i.naked.iki.fi
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
next prev parent reply other threads:[~2007-10-16 10:30 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 [this message]
2007-09-23 7:35 ` Renzo Been
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877ilnmk7m.fsf@aka.i.naked.iki.fi \
--to=naked@iki.fi \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.