emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ken Mankoff <mankoff@gmail.com>
To: Bastien <bzg@gnu.org>
Cc: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: Hide empty custom agenda sections
Date: Thu, 27 Jun 2013 11:18:39 -0400	[thread overview]
Message-ID: <CAFdBzEoyMFZ83pt+d1rpKnJ8M3TW5AdoEL2C7qqUiEN1AoqLrg@mail.gmail.com> (raw)
In-Reply-To: <87fvw3oarm.fsf@bzg.ath.cx>

[-- Attachment #1: Type: text/plain, Size: 1639 bytes --]

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: 3487 bytes --]

  reply	other threads:[~2013-06-27 15:18 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 [this message]
2013-06-28 16:34     ` Ken Mankoff
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=CAFdBzEoyMFZ83pt+d1rpKnJ8M3TW5AdoEL2C7qqUiEN1AoqLrg@mail.gmail.com \
    --to=mankoff@gmail.com \
    --cc=bzg@gnu.org \
    --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).