emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Brady Trainor <algebrat@uw.edu>
To: emacs-orgmode@gnu.org
Subject: Tried to use `org-agenda-top-headline-filter' in agenda block
Date: Tue, 22 Apr 2014 14:46:35 -0700	[thread overview]
Message-ID: <lj6nvs$8vh$1@ger.gmane.org> (raw)


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

             reply	other threads:[~2014-04-22 21:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-22 21:46 Brady Trainor [this message]
2014-04-23  6:12 ` Tried to use `org-agenda-top-headline-filter' in agenda block Bastien
2014-04-26 14:45   ` Brady Trainor
2014-04-26 15:07     ` Brady Trainor
2014-04-29 12:15       ` Bastien

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='lj6nvs$8vh$1@ger.gmane.org' \
    --to=algebrat@uw.edu \
    --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).