emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Peter Jones <mlists@pmade.com>
To: emacs-orgmode@gnu.org
Subject: Re: Correct Way to Create Sibling Headings
Date: Sat, 13 Sep 2008 17:17:47 -0600	[thread overview]
Message-ID: <m2abebljok.fsf@pmade.com> (raw)
In-Reply-To: 450C45DF-D7D3-4460-8D91-CBE559CBA69C@uva.nl

Carsten Dominik <dominik@science.uva.nl> writes:
> M-RET and M-S-RET will remain the same, i.e. they will insert the
> heading directly after the current line, therefore making any content
> of the entry part of the new entry.  I believe this still makes sense,
> because it feels more like direct editing of the text file.  In this
> case, the idea is that if you want to insert the new heading after all
> the content, you would first move the cursor to after the content.
>
> I am redefining C-RET and C-S-RET in the way you propose.  The will
> now also insert a new heading *before* the current if the cursor is at
> the beginning of the line.  And they will achieve the insertion
> without folding siblings.
>
> Finally, I am introducing a new option `org-insert-heading-respect-
> content', default nil.  If you set this to t, M-RET and M-S-RET will
> behave just like C-RET and C-S-RET, respectively, so in this way you
> can make this behavior the default.

Great!  I can't wait to update and try this out.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US

      reply	other threads:[~2008-09-13 23:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-11 21:08 Correct Way to Create Sibling Headings Peter Jones
2008-09-13  3:16 ` Daniel Clemente
2008-09-13 19:57 ` Carsten Dominik
2008-09-13 23:17   ` Peter Jones [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=m2abebljok.fsf@pmade.com \
    --to=mlists@pmade.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).