emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Tried to use `org-agenda-top-headline-filter' in agenda block
@ 2014-04-22 21:46 Brady Trainor
  2014-04-23  6:12 ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: Brady Trainor @ 2014-04-22 21:46 UTC (permalink / raw)
  To: emacs-orgmode


Org-mode version 8.2.5h (8.2.5h-137-gc7812f-elpa @ 
/home/iam/.emacs.d/elpa/org-20140421/)

I tried to use `org-agenda-top-headline-filter'.

I have a tree as follows:
   ____
  /
|   * diary-sunrise, diary-sunset
|   %%(diary-sunrise)
|   %%(diary-sunset)
  \____


The syntax I tried was:

     (org-agenda-top-headline-filter "diary-sunrise, diary-sunset")

That is, in the following: (might need `(require 'org-agenda)'.)

#+BEGIN_SRC emacs-lisp
(org-add-agenda-custom-command
  '("zs" "sunrise, sunset"
    agenda ""
    ((org-agenda-files '("/e/org/zeus.org"))
     (org-agenda-prefix-format "%t %s")
     (org-agenda-span 'week)
     (org-agenda-start-on-weekday nil)
     (org-agenda-use-time-grid 'nil)
     (org-agenda-top-headline-filter '("diary-sunrise, diary-sunset"))
     )
    ))
#+END_SRC

I'm sure I could easily use a tag, category etc, but I like being able 
to consider all the possibilities as I develop my agenda-views.


%%(Thank you always),

Brady

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-04-29 12:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-22 21:46 Tried to use `org-agenda-top-headline-filter' in agenda block Brady Trainor
2014-04-23  6:12 ` Bastien
2014-04-26 14:45   ` Brady Trainor
2014-04-26 15:07     ` Brady Trainor
2014-04-29 12:15       ` Bastien

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