I am trying to use the refile function but don't understand why I get the error
no refile targets
after hitting the Cc Cw key.
Here is the content of org-refile-targets
variable :
Its value is (("~/gtd/gtd.org" :maxlevel . 3) ("~/gtd/someday.org" :level . 1) ("~/gtd/tickler.org" :maxlevel . 2))
Original value was nil and defined through this function in .emacs
(setq org-refile-targets '(("~/gtd/gtd.org" :maxlevel . 3)
("~/gtd/someday.org" :level . 1)
("~/gtd/tickler.org" :maxlevel . 2)))
All those files exist in the gtd folder. I can capture elements that I are stored into the ~/gtd/inbox.org
file.
I am relatively new to the emacs/org-mode world, the error might be quite stupid.
It seems like you're following along with Nicolas Petton's Orgmode for GTD article; I ran into the same issue this morning.
org-refile
searches for headings within the files in org-refile-targets
, up to the level specified. So in your example, org-refile
will find headings up to level 3 in ~/gtd/gtd.org
, level 2 in ~/gtd/tickler.org
, and only level 1 in ~/gtd/someday.org
. These will then be offered as targets for your refile operation.
To fix this error, simply create some headings in one or more of those files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With