简体   繁体   中英

org-agenda buffer no longer shows agenda items

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 ( Cc at ), 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?

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

Try this:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM