Emacs25(25.2.2/Ubuntu17.10)下org-agenda-list不显示任务详情
It looks like the core issue here is that Org Agenda doesn't know which files to scan for your tasks—this is a super common gotcha when getting started with Org mode!
Why this happens:
org-timeline works because it generates the timeline directly from the Org file you currently have open. But org-agenda-list relies on the org-agenda-files variable to know where to look for tasks. Since you haven't set this variable (your .emacs only has the keybinding, and .emacs.d is empty), Org Agenda can't find your test tasks at all.
How to fix it:
1. Temporary test fix:
- Run
M-x customize-variable RET org-agenda-files RET - Click the "INS" button to add a new entry
- Paste the full path to your test Org file (e.g.,
~/Documents/my-test-tasks.org) - Click "Apply and Save" to lock in the change permanently
2. Permanent fix (add to your .emacs):
Update your .emacs file to include the org-agenda-files configuration. For example, if your test file lives at ~/my-org-tasks.org, your .emacs will look like this:
(global-set-key "\C-ca" 'org-agenda) (setq org-agenda-files '("~/my-org-tasks.org"))
If you keep multiple Org files in a dedicated directory (like ~/org/), you can point to the entire directory instead:
(setq org-agenda-files '("~/org/"))
3. Verify the fix:
- Reload your Emacs configuration with
M-x eval-buffer(if you edited.emacsdirectly) or restart Emacs - Run
C-c ato openorg-agenda-list—you should now see all your scheduled, deadline, and todo tasks listed under their respective dates!
Quick extra tip:
If you ever add a new Org file later, you can run M-x org-agenda-file-to-front to quickly add the currently open file to your agenda list without editing the config.
内容的提问来源于stack exchange,提问作者Ranjeet

