From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: How to use the file+function capture template? Date: Wed, 06 Nov 2013 13:56:30 +0100 Message-ID: <87k3gladtt.fsf@bzg.ath.cx> References: <20131009131137.6424f18f@aga-netbook> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59852) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ve2f6-0000jZ-6P for emacs-orgmode@gnu.org; Wed, 06 Nov 2013 07:56:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ve2ew-000170-Rx for emacs-orgmode@gnu.org; Wed, 06 Nov 2013 07:56:44 -0500 Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]:42167) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ve2ew-00016p-Kr for emacs-orgmode@gnu.org; Wed, 06 Nov 2013 07:56:34 -0500 Received: by mail-wi0-f169.google.com with SMTP id cb5so4778458wib.2 for ; Wed, 06 Nov 2013 04:56:33 -0800 (PST) In-Reply-To: <20131009131137.6424f18f@aga-netbook> (Marcin Borkowski's message of "Wed, 9 Oct 2013 13:11:37 +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: Marcin Borkowski Cc: Org-mode mailing list Hi Marcin, Marcin Borkowski writes: > 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? Right. > And how to access the content (like the %:link from the bookmarklet I > use) in the elisp function? AFAIK you can't, %:link is available only in the template itself. -- Bastien