emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Francis Moreau <francis.moro@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Issue with remember templates
Date: Sun, 3 Jan 2010 14:11:13 +0100	[thread overview]
Message-ID: <578B2E86-5989-4894-92A4-9A3ED89F75F0@gmail.com> (raw)
In-Reply-To: <38b2ab8a0912310356h90f41d3kd1978d85af1eac46@mail.gmail.com>


On Dec 31, 2009, at 12:56 PM, Francis Moreau wrote:

> Hello,
>
> I'd like to note my work's holidays using remember.
>
> For this, I have a org file (work.org for example) which contains the
> following headline:
>
> * Holidays
> #+CATEGORY: Holiday
> %%(diary-date 12 '(4 7) 2009) Day Off
>
> I also created the following template to speed up the process of
> entering a new holiday entri:
>
> ("Holidays" ?h "* %% (diary-date %?) Day Off" "work.org" "Holidays")
>
> But as you can notice, this doesn't exactly create the entry I
> described previously since it does:
>
> * %% (diary-date ) Day Off
>
> I had to insert some spaces otherwise Org tries to evaluate the Elisp
> SEXP. I tried to use some backslashes in several ways like
> '\%(diary-date )' but it has no effect.

"* %\\%(diary-date %?) Day Off"

should work.

>
> The other problem is that Org ensures that the new entry has a
> headline so I had to start the template with '*'. But I don't want
> this since I read that the sexp entries must start at the left margin.

You can use

("Holidays" ?h "* Day Off <%\\%(diary-date %?)>" "work.org" "Holidays")

HTH

- Carsten


>
> Could anybody give me some hints to solve these 2 issues ?
>
> Thanks
> -- 
> Francis
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

  reply	other threads:[~2010-01-03 13:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-31 11:56 Issue with remember templates Francis Moreau
2010-01-03 13:11 ` Carsten Dominik [this message]
2010-01-04  8:52   ` Francis Moreau
2010-01-04  9:00     ` Carsten Dominik
2010-01-04  9:44       ` Francis Moreau

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=578B2E86-5989-4894-92A4-9A3ED89F75F0@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=francis.moro@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).