From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Capturing to current file Date: Sat, 14 Apr 2012 18:45:00 -0400 Message-ID: <8582.1334443500@alphaville> References: <6969390217168358027@unknownmsgid> <2012-04-14T20-32-18@devnull.Karl-Voit.at> <0l3986kmyn.fsf@news.eternal-september.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52892) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJBiZ-0005i1-6m for emacs-orgmode@gnu.org; Sat, 14 Apr 2012 18:45:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SJBiX-0002Hy-3u for emacs-orgmode@gnu.org; Sat, 14 Apr 2012 18:45:18 -0400 Received: from g6t0186.atlanta.hp.com ([15.193.32.63]:48565) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJBiW-00028c-UT for emacs-orgmode@gnu.org; Sat, 14 Apr 2012 18:45:17 -0400 Received: from g5t0029.atlanta.hp.com (g5t0029.atlanta.hp.com [16.228.8.141]) by g6t0186.atlanta.hp.com (Postfix) with ESMTP id 445F62C150 for ; Sat, 14 Apr 2012 22:45:03 +0000 (UTC) Received: from ldl (ldl.usa.hp.com [16.125.112.222]) by g5t0029.atlanta.hp.com (Postfix) with ESMTP id 871E920024 for ; Sat, 14 Apr 2012 22:45:03 +0000 (UTC) Received: from localhost (ldl.fc.hp.com [127.0.0.1]) by ldl (Postfix) with ESMTP id C4440CF000B for ; Sat, 14 Apr 2012 16:45:02 -0600 (MDT) Received: from ldl ([127.0.0.1]) by localhost (ldl.fc.hp.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D6R72T244+bq for ; Sat, 14 Apr 2012 16:45:02 -0600 (MDT) Received: from alphaville.dokosmarshall.org (squirrel.fc.hp.com [15.11.146.57]) by ldl (Postfix) with ESMTP id 69903CF0007 for ; Sat, 14 Apr 2012 16:45:02 -0600 (MDT) Received: from alphaville (localhost [127.0.0.1]) by alphaville.dokosmarshall.org (Postfix) with ESMTP id EB3D4401F3 for ; Sat, 14 Apr 2012 18:45:00 -0400 (EDT) In-Reply-To: Message from Richard Riley of "Sat, 14 Apr 2012 23:44:32 +0200." <0l3986kmyn.fsf@news.eternal-september.org> 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: emacs-orgmode@gnu.org Richard Riley wrote: > Karl Voit writes: > > > * Marvin Doyley wrote: > >> Hi there, > > > > Hi! > > > >> I am trying to create a thought bin related to a specific project > >> (org-file, where I perform all my writing task). > >> My idea is very simple, if an idea, todo item related to the project > >> i am working on, which is usually the case, I would like to file it > >> under a specific heading within the same file rather than a master > >> file. > >> > >> Any thoughts on how to do this ? > > > > Oh yes, take a look on http://orgmode.org/org.html#Capture-templates > > where you can define target files for your item. > > Is it documented on how to achieve what the op requested? Namely to > store the notes in the current file? Would that be a use for the > function-finding-location? > I couldn't really tell what the OP requested, but if it is indeed storing the capture in the current file, the answer is "that can be done". AFAIK, it's not documented anywhere except on the mailing list though - see http://thread.gmane.org/gmane.emacs.orgmode/35759/focus=35781 Something like this (untested): (setq org-capture-templates '( ("X" "test" entry (file+headline (buffer-file-name (org-capture-get :original-buffer)) "Tasks") "* TODO %? %U %a %n" :prepend t))) Nick