ok, i've found the magic behind:

("E" "Microsoft Exchange diary entry" entry (file+datetree (concat my-org-files 
"diary.org"))
(function testme))
))

(defun testme ()
"* %? :event:\n%a\n%^T\n\nEntered on %U"
)


it took me some time to find out the correct syntax

.d.


David Belohrad <[email protected]> writes:

> Dear All,
>
> i want to make a capture template, which will call a function to feed
> that template. Is there any way how to do it?
>
> Something like this:
>
> ("E" "Dynamic diary entry" entry (file+datetree (concat my-org-files
> "diary.org")) <my_template_function>)
>
>
> I have found that one can use function for _target_, but not for actual
> template. Afaik template can be only loaded from a file, right?
>
> thanks
> .d.

Reply via email to