Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

org-mode - no refile targets

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.

like image 566
tuculuxu Avatar asked Mar 15 '19 11:03

tuculuxu


1 Answers

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.

like image 130
pinecamp Avatar answered Oct 07 '22 04:10

pinecamp