Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

org-agenda buffer no longer shows agenda items

Tags:

emacs

org-mode

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?

like image 496
krishnan Avatar asked Dec 20 '22 18:12

krishnan


2 Answers

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

like image 140
fniessen Avatar answered Dec 29 '22 04:12

fniessen


Try this:

(setq org-agenda-files
      (append
       (file-expand-wildcards "~/work/org/*.org")
       (file-expand-wildcards "~/personal/org/*.org")))
like image 23
artscan Avatar answered Dec 29 '22 02:12

artscan