[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] struggle with using variable org-agenda-*-filter* properly
From: |
Brady Trainor |
Subject: |
[O] struggle with using variable org-agenda-*-filter* properly |
Date: |
Mon, 28 Apr 2014 14:58:59 -0700 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
I am often having difficulties with the various org-agenda filter
settings, for creating org-agenda-custom-commands. There is not much
documentation, especially, examples for those new to for instance
regexp, and Emacs' regexp, and how these work with org's syntax.
In the following agenda-custom-command, I tried to use regexp in
regexp-filter and tag-filter, but could not succeed. I did successfully
get the skip-function to work, but I was hoping to clarify if I should
expect the other variables to work, now or in the future, and/or if you
could help me understand how to use them properly.
(org-add-agenda-custom-command
'("h" "habits"
agenda ""
((org-agenda-files '("/e/org/agendas-main.org"))
(org-agenda-skip-function
'(org-agenda-skip-entry-if 'notregexp ":STYLE:.+habit"))
(org-agenda-span 'day)
;; (org-agenda-regexp-filter-preset '(":STYLE:.+habit"))
;; (org-agenda-tag-filter-preset '("+STYLE=\"habit\""))
)
))
I have tried various permutations of the syntax, but could not make the
latter two variables work.
Leads:
- http://orgmode.org/manual/Matching-tags-and-properties.html
- which links to,
http://orgmode.org/manual/Special-agenda-views.html#x-agenda-skip-entry-regexp,
perhaps the intended solution at this time
- http://orgmode.org/worg/org-tutorials/advanced-searching.html
- http://www.emacswiki.org/emacs/RegularExpression
Thank you,
Brady
- [O] struggle with using variable org-agenda-*-filter* properly,
Brady Trainor <=