From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: How to use the file+function capture template? Date: Wed, 9 Oct 2013 13:11:37 +0200 Message-ID: <20131009131137.6424f18f@aga-netbook> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTrgC-0000QI-4L for emacs-orgmode@gnu.org; Wed, 09 Oct 2013 07:11:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTrg6-0004qr-JP for emacs-orgmode@gnu.org; Wed, 09 Oct 2013 07:11:48 -0400 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:43076) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTrg6-0004lr-Bn for emacs-orgmode@gnu.org; Wed, 09 Oct 2013 07:11:42 -0400 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id A8EA64C332 for ; Wed, 9 Oct 2013 13:11:39 +0200 (CEST) Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f4PJxQr0hjln for ; Wed, 9 Oct 2013 13:11:39 +0200 (CEST) Received: from aga-netbook (99-52.echostar.pl [213.156.99.52]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 807074C31B for ; Wed, 9 Oct 2013 13:11:39 +0200 (CEST) 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: Org-mode mailing list Hi all, I'd like to configure my capture template so that I can select the target automatically based on the thing captured (use case: I use capture instead of Firefox bookmarks to store interesting links. I'd like to store links to youtube videos I'd like to watch some day under another headline). The manual says there is a file-function template, but my question is: how do I use it? I imagine that the function should move the point to the right place in the file buffer, right? And how to access the content (like the %:link from the bookmarklet I use) in the elisp function? TIA, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University