[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] newlines in capture templates from the customize buffer
From: |
Giovanni Ridolfi |
Subject: |
Re: [Orgmode] newlines in capture templates from the customize buffer |
Date: |
Fri, 10 Dec 2010 13:18:55 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (windows-nt) |
suvayu ali <address@hidden> 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