From: suvayu ali <fatkasuvayu+linux@gmail.com>
To: "Gustav Wikström" <gustav.erik@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Org-agenda-custom-commands, restrict Agenda to file/files?
Date: Thu, 6 Oct 2011 15:45:42 +0200 [thread overview]
Message-ID: <CAMXnza0V5gGkSKG1O2yDHGcvFQ57S24axbHN0i6TqxzsrAFfdA@mail.gmail.com> (raw)
In-Reply-To: <CA+SyOP9sixMJ-D4uLtiRqNr1A_6oHsM1HgMobq_1CbTXvMo7Sg@mail.gmail.com>
2011/10/6 Gustav Wikström <gustav.erik@gmail.com>:
> I want to simplify this with a custom-command. And here comes my problem,
> what is the option to restrict the agenda to a certain file? Changing the
> org-agenda-files list does not seem to make a difference when using a custom
> agenda.
Something like this should work. The variable list below is like a let binding.
("<key>" "Some custom command" <agenda command> "..."
((org-agenda-files (list "file1" "file2"))
(<other variables you want to bind>)))
HTH
--
Suvayu
Open source is the future. It sets us free.
prev parent reply other threads:[~2011-10-06 13:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-06 13:18 Org-agenda-custom-commands, restrict Agenda to file/files? Gustav Wikström
2011-10-06 13:45 ` suvayu ali [this message]
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=CAMXnza0V5gGkSKG1O2yDHGcvFQ57S24axbHN0i6TqxzsrAFfdA@mail.gmail.com \
--to=fatkasuvayu+linux@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=gustav.erik@gmail.com \
/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).