At Tue, 07 Feb 2012 14:16:02 -0800, lngn...@gmail.com wrote: > > So, to summarize, org-agenda-files should reflect those files I > need to access because they have TODOs, Deadlines, Happenings, or > Reminders in them. My search Universe should be constrained > enough to result in instant searches, but not so constrained as > org-agenda-files that need to be processed to produce a daily > agenda.
Are you using `org-agenda-custom-commands' variable? You can specify different sets of agenda files for different commands. There is an `org-agenda-text-search-extra-files' variable, which when bound, adds to the existing agenda files, and has a special value 'agenda-archives, which means all the .org_archive files with same name as agenda files. So assuming you have your regular org-agenda-files set to your "minimum" universe, you can define extra searches like so: (setq org-agenda-custom-commands '(("/" "Occur with archives" ((search "" ((org-agenda-text-search-extra-files '(agenda-archives)))))) ("k" "Occur with archives + knowledge base" ((search "" ((org-agenda-files (cons "~/kb/" org-agenda-files)) (org-agenda-text-search-extra-files '(agenda-archives)))))) )) This will make C-c a / search your normal agenda files, plus their archives, and C-c a k will in addition search all org files and their archives in ~/kb/ directory.