[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-capture-templates - any way how to call function for templat
From: |
David Belohrad |
Subject: |
Re: [O] org-capture-templates - any way how to call function for template? |
Date: |
Wed, 21 Jan 2015 16:16:21 +0100 |
User-agent: |
Notmuch/0.19~rc1 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu) |
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 <address@hidden> 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.