From: Brady Trainor <algebrat@uw.edu>
To: emacs-orgmode@gnu.org
Subject: struggle with using variable org-agenda-*-filter* properly
Date: Mon, 28 Apr 2014 14:58:59 -0700 [thread overview]
Message-ID: <ljmiv3$t1f$1@ger.gmane.org> (raw)
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
next reply other threads:[~2014-04-28 21:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-28 21:58 Brady Trainor [this message]
2014-04-28 22:17 ` struggle with using variable org-agenda-*-filter* properly Brady Trainor
2014-04-29 11:51 ` Bastien
2014-04-29 19:38 ` Brady Trainor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='ljmiv3$t1f$1@ger.gmane.org' \
--to=algebrat@uw.edu \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).