From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Thum Subject: Re: Filter weekly/daily agenda by tag Date: Sun, 28 Oct 2012 13:57:18 +0100 Message-ID: <508D2BAE.8070102@gmx.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSSQc-0000uW-4G for emacs-orgmode@gnu.org; Sun, 28 Oct 2012 08:57:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TSSQb-00047G-7k for emacs-orgmode@gnu.org; Sun, 28 Oct 2012 08:57:22 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:39664) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TSSQa-00047B-TG for emacs-orgmode@gnu.org; Sun, 28 Oct 2012 08:57:21 -0400 In-Reply-To: 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: Alexander Baier Cc: emacs-orgmode@gnu.org On 10/28/2012 12:58 PM, Alexander Baier wrote: > To explain what i want to achieve regarding this example: I want a > weekly agenda view only displaying Event1, Event2 and Event4 but not > Event3 as it should be excluded by its tag. > > Any help is appreciated. FWIW, my agenda is constructed like this: ("w" "work week agenda" agenda "" ((org-agenda-span 'week) (org-agenda-start-on-weekday 1) ;; work - begin on monday (org-agenda-tag-filter-preset '("+@work")) ;; no OR (phd | @work) possible here! (org-agenda-hide-tags-regexp "@work") (org-agenda-compact-blocks t) )) Using the tag-filter-preset allows to change the tags inside the agenda view because it filters the view, not the construction of the agenda. Excluding might work like this: (org-agenda-tag-filter-preset '("+like" "-dislike")) but I haven't tested this combination. I'm also hiding the @work tag as the other tags (if any) are more relevant then. HTH, Simon > > Regards > Alexander > >