From: Max Mikhanosha <max@openchat.com>
To: emacs-orgmode@gnu.org
Subject: Re: Some struggles of mine with org-mode
Date: Wed, 08 Feb 2012 11:26:43 -0500 [thread overview]
Message-ID: <87zkctnvek.wl%max@openchat.com> (raw)
In-Reply-To: <83mx8uxpb1.fsf@gmail.com>
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.
next prev parent reply other threads:[~2012-02-08 16:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-07 22:16 Some struggles of mine with org-mode lngndvs
2012-02-08 3:32 ` Eric Schulte
2012-02-08 12:06 ` Richard Riley
2012-02-08 16:26 ` Max Mikhanosha [this message]
2012-02-08 16:30 ` Eric S Fraga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zkctnvek.wl%max@openchat.com \
--to=max@openchat.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).