emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Shiyao Ma <i@introo.me>
Cc: emacs-orgmode@gnu.org
Subject: Re: How to stop org delete surrounding newline when adding headlines?
Date: Fri, 10 Mar 2017 18:21:47 +0100	[thread overview]
Message-ID: <87fuil9hec.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAJQX3Dw-0T7LK+1Vmb9N7mskQwCexfJw+LMgcPfAqvny5VKCfg@mail.gmail.com> (Shiyao Ma's message of "Thu, 9 Mar 2017 14:39:03 +0800")

Hello,

Shiyao Ma <i@introo.me> writes:

> I don't want org to automatically insert newline when adding headlines, so
> I set this:
>
> org-blank-before-new-entry '((heading . nil) (plain-list-item . nil))
>
> But turns out, org *aggressively* delete the existing newlines when I press
> ctrl-return.
>
>
> How to tell org simply not to add newline when adding headline, meanwhile
> not do anything else?

Have you tried '((heading . auto))?

Regards,

-- 
Nicolas Goaziou

  parent reply	other threads:[~2017-03-10 17:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-09  6:39 How to stop org delete surrounding newline when adding headlines? Shiyao Ma
2017-03-10 15:50 ` Narendra Joshi
2017-03-10 16:16   ` Nicolas Goaziou
2017-03-10 17:21 ` Nicolas Goaziou [this message]
2017-03-11  2:48   ` Shiyao Ma
2017-03-11 10:08     ` Nicolas Goaziou
2017-03-11 13:21       ` Shiyao Ma

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=87fuil9hec.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=i@introo.me \
    /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).