In ~/.emacs/init.el
i have:
(setq org-agenda-files (list "~/org"))
Most of the .org files in that directory have associated .org_archive files with a long history of archived TODO tasks.
When I run org-agenda, it collects any TODO item in the .org_archive files.
Is there a regex type solution to exclude files ending in .org_archive
? I've previously identified individual files to include in the agenda view but that's getting a little cumbersome.
The value of org-agenda-file-regexp
is:
"\\`[^.].*\\.org\\'"
org-agenda-file-regexp
but its default setting should not allow matchingfoo.org_archive
files anyway. What is the value of that variable in your setup? Please edit the question and add that information.(org-agenda-files)
return? You can evaluate that by entering it in your*scratch*
buffer and pressingC-j
. The return value should be a list of all the agenda files. Does it include any.org_archive
files?grep -i
). The ellipsis does indeed mean there is more: see emacs.stackexchange.com/questions/34413/… for some settings that will allow you to see the whole thing.