From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Belohrad Subject: Re: org-store-link programmatically? Date: Fri, 01 Nov 2013 23:53:41 +0100 Message-ID: <87wqkrlone.fsf@pcbe13433.cern.ch> References: <87eh6zpzen.fsf@pcbe13433.cern.ch> <87y557bvxb.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcNbB-0001l5-TU for emacs-orgmode@gnu.org; Fri, 01 Nov 2013 18:53:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VcNb6-0003g9-VT for emacs-orgmode@gnu.org; Fri, 01 Nov 2013 18:53:49 -0400 Received: from static-212-101-19-163.adsl.solnet.ch ([212.101.19.163]:50394 helo=server.belohrad.ch) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcNb6-0003fl-No for emacs-orgmode@gnu.org; Fri, 01 Nov 2013 18:53:44 -0400 In-Reply-To: <87y557bvxb.fsf@gmail.com> 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: Josiah Schwab Cc: emacs-orgmode@gnu.org Josiah Schwab writes: > Hi David, > >> i want to write a piece of code as a 'template', which generates TODO >> using capture template, and inserts into the todo a LINK TO THE >> LOCATION, from which I have called the org-capture. > > Have you looked at "9.1.3 Capture templates" in the documentation? > http://orgmode.org/manual/Capture-templates.html > > It seems to me that the example TODO entry given (using "%a" in the > template) will do what you describe: > > ,---- > | During expansion of the template, %a has been replaced by a link to > | the location from where you called the capture command. This can be > | extremely useful for deriving tasks from emails, for example. > `---- > > Best, > Josiah Right! Thanks for hint. I did not see this one. Does exactly what I wanted to achieve nice weekend .d.