Hi Petro,
Petro <[email protected]> writes:
> (setq org-capture-templates
> '(("t" "Todo" entry (file+headline "~/org/tasks.org" "Tasks")
> "* TODO %?\n %i\n %a")
> ("n" "Note" entry (file+datetree "~/org/notes.org")
> "* %?\nEntered on %U\n %i\n %a")
> ("a" "article note" entry (file+function "~/org/scientific_notes.org"
> find-create-article-note-location)
> "*** test %?\nEntered on %U\n" )
> ))
Instead of
(file+function "~/org/scientific_notes.org"
find-create-article-note-location)
I'd use (function find-file-create-article-note-location)
then tell `find-file-create-article-note-location' to retrieve
(buffer-file-name) when on the pdf.
HTH,
--
Bastien