emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Giovanni Ridolfi <giovanni.ridolfi@yahoo.it>
To: suvayu ali <fatkasuvayu+linux@gmail.com>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: newlines in capture templates from the customize buffer
Date: Fri, 10 Dec 2010 13:18:55 +0100	[thread overview]
Message-ID: <83vd31hlcg.fsf@yahoo.it> (raw)
In-Reply-To: <AANLkTikMx7PMs1TNw_HWo2XT60=vXrm2zPKO0efBHSfk@mail.gmail.com> (suvayu ali's message of "Fri, 10 Dec 2010 12:39:27 +0100")

suvayu ali <fatkasuvayu+linux@gmail.com> 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 <RET>
you can edit your init.el file and substitute <RET> 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

  reply	other threads:[~2010-12-10 12:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-10 11:39 newlines in capture templates from the customize buffer suvayu ali
2010-12-10 12:18 ` Giovanni Ridolfi [this message]
2010-12-10 14:24   ` suvayu ali
2010-12-10 19:03     ` Bernt Hansen

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=83vd31hlcg.fsf@yahoo.it \
    --to=giovanni.ridolfi@yahoo.it \
    --cc=emacs-orgmode@gnu.org \
    --cc=fatkasuvayu+linux@gmail.com \
    /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).