From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shiyao Ma Subject: Re: How to stop org delete surrounding newline when adding headlines? Date: Sat, 11 Mar 2017 10:48:48 +0800 Message-ID: References: <87fuil9hec.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113990a08dd317054a6b84ee Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmX5V-00045I-9o for emacs-orgmode@gnu.org; Fri, 10 Mar 2017 21:48:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmX5S-0000YA-70 for emacs-orgmode@gnu.org; Fri, 10 Mar 2017 21:48:57 -0500 Received: from mail-it0-x233.google.com ([2607:f8b0:4001:c0b::233]:36789) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cmX5S-0000WT-19 for emacs-orgmode@gnu.org; Fri, 10 Mar 2017 21:48:54 -0500 Received: by mail-it0-x233.google.com with SMTP id h10so6441538ith.1 for ; Fri, 10 Mar 2017 18:48:50 -0800 (PST) In-Reply-To: <87fuil9hec.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org --001a113990a08dd317054a6b84ee Content-Type: text/plain; charset=UTF-8 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 wrote: > Hello, > > Shiyao Ma 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 > --001a113990a08dd317054a6b84ee Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

Yes, I've tried with=C2=A0'((heading . auto)). =C2=A0

'((heading . auto)) opens the possibility of inserting n= ewline, which is not desirable for me.


On Sat, Mar 11, 2017 at 1:21 AM, Nicolas Goaziou <= mail@nicolasgoa= ziou.fr> wrote:
Hello,

Shiyao Ma <i@introo.me> writes:
> I don't want org to automatically insert newline when adding headl= ines, so
> I set this:
>
> org-blank-before-new-entry '((heading . nil) (plain-list-item . ni= l))
>
> 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, meanwh= ile
> not do anything else?

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

Regards,

--
Nicolas Goaziou

--001a113990a08dd317054a6b84ee--