emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] template, position search


From: Bastien
Subject: Re: [O] template, position search
Date: Tue, 18 Dec 2012 15:01:03 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

Hi Petro,

Petro <address@hidden> 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



reply via email to

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