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"))))