Hi Eraldo,

Eraldo Helal <era...@eraldo.at> 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


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to