From: Ken Mankoff <mankoff@gmail.com>
To: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: Hide empty custom agenda sections
Date: Fri, 28 Jun 2013 12:34:58 -0400 [thread overview]
Message-ID: <CAFdBzErBBKO5B3R_g6zU6WMqdt9GYofEyNUo8uXB4YSYCxua+g@mail.gmail.com> (raw)
In-Reply-To: <CAFdBzEoyMFZ83pt+d1rpKnJ8M3TW5AdoEL2C7qqUiEN1AoqLrg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2235 bytes --]
So I tried adding a "(nil)" in the custom agenda section. If this were
allowed (presumably ignored), I could write a function that returns nil
unless there were items tagged REFILE, in which case it would return
(tags "REFILE" ((org-agenda-overriding-header "REFILE")))
But having (nil) caused an error. I guess I could make the entire "My
Custom Agenda" section be the output of a function, but that seems overly
complex.
-k.
On Thu, Jun 27, 2013 at 11:18 AM, Ken Mankoff <mankoff@gmail.com> wrote:
> Hi Bastien,
>
> Here is my custom agenda section. I'd like to have the DEADLINE and the
> REFILE only show up if items exist in those sections, not when they are
> empty. Actually, I guess I'd like this for all sections.
>
> (setq org-agenda-custom-commands
> '(("c" "My Custom Agenda"
> (
> (tags "REFILE" ((org-agenda-overriding-header "REFILE")))
> (tags-todo "+DEADLINE<=\"<+3d>\""
> (
> (org-agenda-overriding-header "Deadline <= 3 Days")
> ))
> (tags-todo "+SCHEDULED<\"<tomorrow>\""
> (
> (org-agenda-overriding-header "Scheduled Today")
> ))
> (todo "INPROGRESS" ((org-agenda-overriding-header "In
> Progress")))
> (todo "WAITING|VERIFY" ((org-agenda-overriding-header "Waiting
> or Verify")))
> (agenda "" (
> (org-agenda-overriding-header "Scheduled")
> (org-deadline-warning-days 0)
> ))
> (todo "SOMEDAY" ((org-agenda-overriding-header "Someday")))
> (tags "REFILE" ((org-agenda-overriding-header "REFILE")))
> ) nil ("org.txt" "org.html" "org.ics"))))
>
>
>
> On Thu, Jun 27, 2013 at 10:44 AM, Bastien <bzg@gnu.org> wrote:
>
>> Hi Ken,
>>
>> Ken Mankoff <mankoff@gmail.com> writes:
>>
>> > Right now I have this at the bottom of my custom agenda, and it is
>> > therefore often off-screen. I would like to have it at the top, but
>> > only appear when there are items under this section. Most of the time
>> > it is there and three lines are wasting space (header separator ====
>> > =, header "REFILE", and a blank line).
>>
>> So you are using agenda blocks, right?
>>
>> Please post the skeleton of your custom agendas so that we can better
>> understand.
>>
>> Thanks,
>>
>> --
>> Bastien
>>
>
>
[-- Attachment #2: Type: text/html, Size: 4567 bytes --]
next prev parent reply other threads:[~2013-06-28 16:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-17 10:17 Hide empty custom agenda sections Ken Mankoff
2013-06-27 14:44 ` Bastien
2013-06-27 15:18 ` Ken Mankoff
2013-06-28 16:34 ` Ken Mankoff [this message]
2013-07-01 13:38 ` Bastien
2013-07-01 14:38 ` Ken Mankoff
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=CAFdBzErBBKO5B3R_g6zU6WMqdt9GYofEyNUo8uXB4YSYCxua+g@mail.gmail.com \
--to=mankoff@gmail.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).