From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giovanni Ridolfi Subject: Re: newlines in capture templates from the customize buffer Date: Fri, 10 Dec 2010 13:18:55 +0100 Message-ID: <83vd31hlcg.fsf@yahoo.it> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=55959 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PR1vW-0002rA-Jh for emacs-orgmode@gnu.org; Fri, 10 Dec 2010 07:18:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PR1vV-00024v-KM for emacs-orgmode@gnu.org; Fri, 10 Dec 2010 07:18:18 -0500 Received: from nm18.bullet.mail.ukl.yahoo.com ([217.146.183.192]:23857) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PR1vV-00024g-BU for emacs-orgmode@gnu.org; Fri, 10 Dec 2010 07:18:17 -0500 In-Reply-To: (suvayu ali's message of "Fri, 10 Dec 2010 12:39:27 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: suvayu ali Cc: org-mode mailing list suvayu ali writes: > Hi everyone, > > I am having some trouble writing capture templates with newlines from > the customise buffer. > From all the examples I see in the manual and > Worg, it seems simply putting \n within the template string should > work. No. You see the variable edited by hand, not what you get from the customize buffer. > But entering a "\n" in the template escapes the "\n" when saving > to file and the saved template ends up looking like this, > > "** %^{prompt|TODO|WInP} %? %^G\\n%^t" > > Entering a newline pressing [RET] works. But then in my init.el it is > stored as a carriage return rather than "\n", making it ugly. If you don't like the you can edit your init.el file and substitute with \n by hand: M-% C-q C-j \n > Is there > a way to enter newlines in the customise buffer which is saved as > "\n"? I don't think so. cheers Giovanni