I get this when I try to archive a subtree. My config reads

(setq org-archive-location "~/mega/org/archive.org")

which does exist. So what am I doing wrong here?


If you use C-h v and type in org-archive-location you will see the documentation. There you can see the original value ("%s_archive::") and a few examples

"~/org/archive.org::" , "::* Archived Tasks" or "~/org/archive.org::* From %s"

Now you will probably already realize that you need the double colon in your string.

Syntax seems to be the following:


So your solution should be:

(setq org-archive-location "~/mega/org/archive.org::")
  • thank you that worked. Did that change in emacs 26? it used to work under 25 if I remember correctly
    – CD86
    Nov 7 '19 at 16:39
  • I have no idea as i have started using emacs with version 26.2
    – 7ie7an
    Nov 11 '19 at 8:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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