From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shiyao Ma Subject: How to stop org delete surrounding newline when adding headlines? Date: Thu, 9 Mar 2017 14:39:03 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11404952451652054a46802b Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clrjD-0008Td-JJ for emacs-orgmode@gnu.org; Thu, 09 Mar 2017 01:39:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clrj8-0005HD-MZ for emacs-orgmode@gnu.org; Thu, 09 Mar 2017 01:39:11 -0500 Received: from mail-io0-x230.google.com ([2607:f8b0:4001:c06::230]:35302) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1clrj8-0005H0-G8 for emacs-orgmode@gnu.org; Thu, 09 Mar 2017 01:39:06 -0500 Received: by mail-io0-x230.google.com with SMTP id z13so22641147iof.2 for ; Wed, 08 Mar 2017 22:39:04 -0800 (PST) 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: emacs-orgmode@gnu.org --001a11404952451652054a46802b Content-Type: text/plain; charset=UTF-8 Hi, 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? Regards. --001a11404952451652054a46802b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I don't want org to automatical= ly insert newline when adding headlines, so I set this:

org-blank-before-new-entry '((heading . nil) (plain-list-item . n= il))

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?


R= egards.
--001a11404952451652054a46802b--