From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brady Trainor Subject: Tried to use `org-agenda-top-headline-filter' in agenda block Date: Tue, 22 Apr 2014 14:46:35 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WciWn-000537-8B for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 17:47:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WciWf-0004rD-EK for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 17:46:57 -0400 Received: from plane.gmane.org ([80.91.229.3]:55499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WciWf-0004qB-7G for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 17:46:49 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WciWd-0002rc-Qa for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 23:46:47 +0200 Received: from 75-149-173-2-washington.hfc.comcastbusiness.net ([75.149.173.2]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Apr 2014 23:46:47 +0200 Received: from algebrat by 75-149-173-2-washington.hfc.comcastbusiness.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Apr 2014 23:46:47 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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