From: Carsten Dominik <carsten.dominik@gmail.com>
To: Jeff Horn <jrhorn424@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: New lines (return chracter?) in capture templates
Date: Tue, 23 Nov 2010 06:58:39 +0100 [thread overview]
Message-ID: <8672144B-DA21-4ED0-8AED-310A4D1257C9@gmail.com> (raw)
In-Reply-To: <AANLkTimrVwT7jtQewvFnvV_EXGyauP_4U7+gzQ97eWmi@mail.gmail.com>
On Nov 23, 2010, at 2:34 AM, Jeff Horn wrote:
> On Mon, Nov 22, 2010 at 8:28 PM, Jeff Horn <jrhorn424@gmail.com>
> wrote:
>> On Mon, Nov 22, 2010 at 7:55 PM, Russell Adams
>> <RLAdams@adamsinfoserv.com> wrote:
>>> Can you post the relevant section of your config file?
>>>
>>> I understand you included that template, but the context may help.
>>
>> No problem! Thanks for your willingness to help, Russell. The
>> relevant
>> section is below.
>>
>> ,----
>> | '(org-capture-templates (quote (("t" "Todo" entry (file+headline
>> | "~/org/ftr/jeff/notes/tasks.org" "Tasks") "* TODO %? %i %a") ("n"
>> | "Note" entry (file+datetree "~/org/ftr/jeff/notes/notes.org") "*
>> %U\\n
>> | *%^{Note Title}* %?\\n %i %a"))))
>> `----
>>
>> The variable was set through customize. If I'm reading this
>> correctly,
>> it appears that the customize interface is inserting an *additional*
>> escape character before the slash. I'd consider this a bug, since
>> this
>> was not expected.
>
> Removing the extra escapes fixes the issue.
>
>> Do you know of a way to insert a newline through customize that
>> doesn't
>> get escaped automatically when the string is saved?
>
> Manually editing the customize init file and then viewing the variable
> through the customize interface reveals the solution: simply press
> return when inputting the string. The newline is picked up
> automatically.
In the customize interface, you can create a newline in the template
using C-j or C-o or C-q C-j
- Carsten
prev parent reply other threads:[~2010-11-23 5:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-17 18:13 New lines (return chracter?) in capture templates Jeff Horn
2010-11-23 0:18 ` Jeff Horn
2010-11-23 0:55 ` Russell Adams
2010-11-23 1:28 ` Jeff Horn
2010-11-23 1:34 ` Jeff Horn
2010-11-23 1:47 ` Russell Adams
2010-11-23 5:58 ` Carsten Dominik [this message]
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=8672144B-DA21-4ED0-8AED-310A4D1257C9@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=jrhorn424@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).