From: Matthew Lundin <mdl@imapmail.org>
To: Christopher DeMarco <demarco@maya.com>
Cc: emacs org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: Trouble setting variables in custom agenda command
Date: Thu, 04 Jun 2009 20:48:41 -0500 [thread overview]
Message-ID: <871vpz5u2u.fsf@fastmail.fm> (raw)
In-Reply-To: <20090604150600.GA1265@owl.prv.maya.com> (Christopher DeMarco's message of "Thu, 4 Jun 2009 11:06:00 -0400")
Christopher DeMarco <demarco@maya.com> writes:
> On Thu Jun 4 09:49:19 2009 +0200, Carsten Dominik wrote:
>
>> A block agenda has *two* places where options can be stored.
>> One set of options for just the individual command, and one
>> set for for the block as a whole. Things like
>> org-agenda-start-with-column-view need to be set there, because
>> they are only used in that final cleanup that happens in the
>> second call to org-finalize-agenda, as Nick has described.
>
> Need to be set "where"? The options for the individual command or for
> the whole block?
I believe the second set of options (b below) -- i.e., the ones that
come at the end of the agenda block command and apply to the block as a
whole.
--8<---------------cut here---------------start------------->8---
(setq org-agenda-custom-commands
'(("c" "The Cycle"
((agenda
""
;; What follows is a) the first set of options.
;; They apply to for the agenda command above.
((org-agenda-ndays 1)
(org-agenda-skip-function
'(org-agenda-skip-entry-if 'notregexp "\\* TODO")))))
;; What follows is b) the second set of options.
;; It is for the block as a whole.
;; If you had additional commands it would apply to them too.
((org-agenda-overriding-columns-format
"%75ITEM %7Effort{:} %7CLOCKSUM{Total} %15TAGS %SCHEDULED")
(org-agenda-view-columns-initially t)
(org-agenda-start-with-log-mode t)))))
--8<---------------cut here---------------end--------------->8---
Regards,
Matt
prev parent reply other threads:[~2009-06-05 1:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-27 2:05 Trouble setting variables in custom agenda command Christopher DeMarco
2009-06-03 15:17 ` Carsten Dominik
2009-06-03 18:45 ` Matthew Lundin
2009-06-03 19:18 ` Sebastian Rose
2009-06-03 19:42 ` Eric S Fraga, Eric S Fraga
2009-06-03 19:10 ` Bernt Hansen
2009-06-03 22:26 ` Nick Dokos
2009-06-03 22:59 ` Nick Dokos
2009-06-04 7:49 ` Carsten Dominik
2009-06-04 15:06 ` Christopher DeMarco
2009-06-05 1:48 ` Matthew Lundin [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=871vpz5u2u.fsf@fastmail.fm \
--to=mdl@imapmail.org \
--cc=demarco@maya.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).