From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Issue with remember templates Date: Sun, 3 Jan 2010 14:11:13 +0100 Message-ID: <578B2E86-5989-4894-92A4-9A3ED89F75F0@gmail.com> References: <38b2ab8a0912310356h90f41d3kd1978d85af1eac46@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NRQEs-0006pA-NF for emacs-orgmode@gnu.org; Sun, 03 Jan 2010 08:11:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NRQEo-0006my-NV for emacs-orgmode@gnu.org; Sun, 03 Jan 2010 08:11:22 -0500 Received: from [199.232.76.173] (port=42441 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NRQEn-0006mq-Rr for emacs-orgmode@gnu.org; Sun, 03 Jan 2010 08:11:17 -0500 Received: from mail-ew0-f224.google.com ([209.85.219.224]:42611) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NRQEn-00048w-N7 for emacs-orgmode@gnu.org; Sun, 03 Jan 2010 08:11:17 -0500 Received: by ewy24 with SMTP id 24so17076575ewy.26 for ; Sun, 03 Jan 2010 05:11:16 -0800 (PST) In-Reply-To: <38b2ab8a0912310356h90f41d3kd1978d85af1eac46@mail.gmail.com> 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: Francis Moreau Cc: emacs-orgmode@gnu.org 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