4
votes

I recently decided to redo my entire org setup and make it more efficient. I used to have .org files all over my machine, but they now reside in 2 folders:

~/work/org
~/personal/org

I reset where org-mode looks for agenda files with

;; set agenda files
(setq org-agenda-files (quote ("~/work/org"
                   "~/personal/org")))

However, when I pull up the todo list (C-c a t), I get errors of the form:

Non-existent agenda file [filename]. [R]emove from list or [A]bort?

for files that were in the old list. If I remove all these files, I eventually get an Org Agenda buffer that simply shows:

Global list of TODO items of type: ALL
Available with `N r': (0)[ALL]

Any idea on what I am doing wrong?

2
Have you eval'ed setq org-agenda-files after you change your init file? - Sergii Dymchenko
Look at the value of org-agenda-files. - Jeffrey DeLeo
See my answer in a related thread that discusses how to set this variable using org-agenda-file-regexp: superuser.com/a/702079/206164 - lawlist
Hi all, thanks for your comments. Yes, I eval'ed the expression. How do I check the value of org-agenda-files exactly? - krishnan
My link above discusses how this variable is set each time it is needed with a function with the same name. - lawlist

2 Answers

10
votes

Ensure you don't have org-agenda-files set in a "customize" block in your .Emacs file. This is a common source of errors.

1
votes

Try this:

(setq org-agenda-files
      (append
       (file-expand-wildcards "~/work/org/*.org")
       (file-expand-wildcards "~/personal/org/*.org")))