emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Some struggles of mine with org-mode


From: Max Mikhanosha
Subject: Re: [O] Some struggles of mine with org-mode
Date: Wed, 08 Feb 2012 11:26:43 -0500
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/23.3.50 (x86_64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO)

At Tue, 07 Feb 2012 14:16:02 -0800,
address@hidden 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]