From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Lundin Subject: Re: howto refile to non-agenda file? Date: Sun, 24 May 2009 22:10:32 -0500 Message-ID: <87d49xho7r.fsf@fastmail.fm> References: <938fae2d0905240730h660999farea6950eebf18c94e@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M8QZS-0003S9-45 for emacs-orgmode@gnu.org; Sun, 24 May 2009 23:09:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M8QZN-0003MQ-L5 for emacs-orgmode@gnu.org; Sun, 24 May 2009 23:09:49 -0400 Received: from [199.232.76.173] (port=42647 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8QZN-0003M7-CT for emacs-orgmode@gnu.org; Sun, 24 May 2009 23:09:45 -0400 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:38856) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M8QZN-0004i2-1N for emacs-orgmode@gnu.org; Sun, 24 May 2009 23:09:45 -0400 In-Reply-To: <938fae2d0905240730h660999farea6950eebf18c94e@mail.gmail.com> (Eraldo Helal's message of "Sun, 24 May 2009 16:30:28 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eraldo Helal Cc: Org-Mode Hi Eraldo, Eraldo Helal writes: > howto refile to non-agenda file? > > I want to be able to refile projects to a reference.org file. > At the moment, if I create that file in the same directory as eraldo.org, > it will show up as refile option, but also in the agenda! You can specify the files you'd like to refile to with org-refile-targets. You can add as many additional files as you'd like, indicating for each how deep you'd like the refile targets to descend (i.e., 1st level, 2nd level, etc.). Here's my current customization, to provide an example: --8<---------------cut here---------------start------------->8--- (setq org-refile-targets '((org-agenda-files :maxlevel . 2) (nil :maxlevel . 3) ("~/mystuff/wiki/wiki.org" :maxlevel . 1))) --8<---------------cut here---------------end--------------->8--- > Another question I have is: How can I refile an item or tree to a new file? You can create a new headline within a file when you refile, but I'm not aware of any way to create a new file. Regards, Matt