I want to be able to refile tasks and todos not only between different headings within a singel org file, but between headings in several org files. To accomplish this I use the following code:

(setq org-refile-targets '(
   (nil :maxlevel . 2)             ; refile to headings in the current buffer
   (org-agenda-files :maxlevel .2) ; refile to any of these files

However, when trying to refile a task with the key C-c C-w I get the following error message:

"Wrong type argument: numberp, (0.2)"

What is wrong with my code? or is something else lacking?

1 Answer 1


You probably need a space between the . and the 2.

  • Thanks ! haha how COULD I overlook that detail : ) Now it works!
    – myotis
    Aug 16, 2015 at 15:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.