emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Exclude tag from custom agenda


From: Karl Voit
Subject: Re: [O] Exclude tag from custom agenda
Date: Sun, 9 Dec 2012 22:31:46 +0100
User-agent: slrn/0.9.9 (Linux)

* Memnon Anon <address@hidden> wrote:
> Karl Voit <address@hidden> writes:
>
>> What I want to achieve: on top, there should be my normal agenda
>> (events, tasks, habits, ...) but minus elements tagged with
>> "reward".
>
> #+begin_src emacs-lisp
> ;;; Based on http://article.gmane.org/gmane.emacs.orgmode/41427
>   (defun my-skip-tag(tag)
>     "Skip entries that are tagged TAG"
>     (let* ((entry-tags (org-get-tags-at (point))))
>       (if (member tag entry-tags)
>           (progn (outline-next-heading) (point))
>         nil)))
> #+end_src
>
> #+begin_src emacs-lisp
> (agenda "" 
>  ((org-agenda-skip-function '(my-skip-tag"reward"))
>   (org-agenda-overriding-header "Agenda (without rewards: ")))))
> #+end_src
>
> That should do it.
> Please give it a try :)

Awesome! Works great!

Now I only need the "DONE today" section and a much faster CPU core
to generate my uber-agenda :-)

Thanks for your help!

-- 
Karl Voit




reply via email to

[Prev in Thread] Current Thread [Next in Thread]