emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] How to set a property defaults in a capture template.


From: Bastien
Subject: Re: [O] How to set a property defaults in a capture template.
Date: Wed, 21 Dec 2011 00:05:14 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

dlc <address@hidden> writes:

> I have attempted to use the expansion %(SEXP) along with the property
> api as in the following but it does not work because Emacs-Lisp
> doesn't support nested strings (right?) I am just learning
> emacs-lisp, so I'm am sure my lack of knowledge is at work here.
>
> (setq org-capture-templates
> '(
>   ("t" "Test adding property" entry (file "~/people.org")
>     "* Test Entry %(org-entry-put (point) "STYLE" "habit")"
>            )
>    ( another template
>    )
>           ))  

Shooting in the dark: if this is just a matter of "nested strings",
you can try to simply escape the double-quotes in your template.

  "* Test Entry %(org-entry-put (point) \"STYLE\" \"habit\")"

(Caveat: I didn't check the whole syntax of your setq above...
hope that helps anyway.)

-- 
 Bastien



reply via email to

[Prev in Thread] Current Thread [Next in Thread]