From: Shiyao Ma <i@introo.me>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: How to stop org delete surrounding newline when adding headlines?
Date: Sat, 11 Mar 2017 10:48:48 +0800 [thread overview]
Message-ID: <CAJQX3Dx_Qf-GYq0M9swR6AAeM8Y2eg-w3jmHkraLSGDFJ1zC2g@mail.gmail.com> (raw)
In-Reply-To: <87fuil9hec.fsf@nicolasgoaziou.fr>
[-- Attachment #1: Type: text/plain, Size: 745 bytes --]
Hi,
Yes, I've tried with '((heading . auto)).
'((heading . auto)) opens the possibility of inserting newline, which is
not desirable for me.
On Sat, Mar 11, 2017 at 1:21 AM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:
> 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
>
[-- Attachment #2: Type: text/html, Size: 1556 bytes --]
next prev parent reply other threads:[~2017-03-11 2:48 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
2017-03-11 2:48 ` Shiyao Ma [this message]
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=CAJQX3Dx_Qf-GYq0M9swR6AAeM8Y2eg-w3jmHkraLSGDFJ1zC2g@mail.gmail.com \
--to=i@introo.me \
--cc=emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/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).