emacs-orgmode
[Top][All Lists]
Advanced

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

[O] org-agenda-custom-commands with org-agenda-filter-by-regexp


From: Tory S. Anderson
Subject: [O] org-agenda-custom-commands with org-agenda-filter-by-regexp
Date: Wed, 19 Aug 2015 09:57:10 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

I've previously had success with using `org-agenda-tag-filter-preset` in `org-agenda-custom-commands` but I wanted to include OR logic on two different tags, which seemed beyond th tag-filter (which seems to use AND logic). In my agenda view I can use `=` to use a conditional on two tags, but I can't seem to duplicate that behavior in a custom command. With no errors it simply doesn't seem to work, and googling around has proved fruitless for giving examples; I've tried a number of different syntax without effect.

--8<---------------cut here---------------start------------->8---
(setq org-agenda-custom-commands
     '(("w"."Work")
        ("wd" "Work Day"
((agenda "" ((org-agenda-span 1) (org-agenda-start-on-weekday nil) (org-agenda-filter-by-regexp '(":\\(ODH\)\\|\\(AGENDA\\):"))))))))
--8<---------------cut here---------------end--------------->8---


What's the proper way to get a working regexp filter in my custom-command? Thanks!



reply via email to

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