From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: template, position search Date: Tue, 18 Dec 2012 15:01:03 +0100 Message-ID: <87a9tbgv8r.fsf@bzg.ath.cx> References: <87zk3rhkiw.fsf@cica.cica> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tl0NF-0000PP-2C for emacs-orgmode@gnu.org; Tue, 18 Dec 2012 11:50:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tl0ND-0004uh-K9 for emacs-orgmode@gnu.org; Tue, 18 Dec 2012 11:50:32 -0500 Received: from mail-wi0-f176.google.com ([209.85.212.176]:45782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tl0ND-0004uU-DN for emacs-orgmode@gnu.org; Tue, 18 Dec 2012 11:50:31 -0500 Received: by mail-wi0-f176.google.com with SMTP id hm6so2918647wib.15 for ; Tue, 18 Dec 2012 08:50:30 -0800 (PST) In-Reply-To: <87zk3rhkiw.fsf@cica.cica> (Petro's message of "Fri, 12 Oct 2012 15:44:55 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Petro Cc: emacs-orgmode@gnu.org Hi Petro, Petro 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