dlc <d...@coateconnection.com> 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