From mboxrd@z Thu Jan 1 00:00:00 1970 From: Max Mikhanosha Subject: Re: Some struggles of mine with org-mode Date: Wed, 08 Feb 2012 11:26:43 -0500 Message-ID: <87zkctnvek.wl%max@openchat.com> References: <83mx8uxpb1.fsf@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvAMB-0000zf-2k for emacs-orgmode@gnu.org; Wed, 08 Feb 2012 11:26:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RvAM2-0003ut-36 for emacs-orgmode@gnu.org; Wed, 08 Feb 2012 11:26:55 -0500 Received: from p84-72.acedsl.com ([66.114.84.72]:39345 helo=momoland.openchat.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvAM1-0003uR-Pd for emacs-orgmode@gnu.org; Wed, 08 Feb 2012 11:26:45 -0500 In-Reply-To: <83mx8uxpb1.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org At Tue, 07 Feb 2012 14:16:02 -0800, lngndvs@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.