From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: How to stop org delete surrounding newline when adding headlines? Date: Fri, 10 Mar 2017 18:21:47 +0100 Message-ID: <87fuil9hec.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmOEr-0002rO-6p for emacs-orgmode@gnu.org; Fri, 10 Mar 2017 12:22:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmOEk-000106-V3 for emacs-orgmode@gnu.org; Fri, 10 Mar 2017 12:22:01 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:60146) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cmOEk-0000zQ-Mq for emacs-orgmode@gnu.org; Fri, 10 Mar 2017 12:21:54 -0500 In-Reply-To: (Shiyao Ma's message of "Thu, 9 Mar 2017 14:39:03 +0800") 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: Shiyao Ma Cc: emacs-orgmode@gnu.org 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