From: Bastien <bzg@gnu.org>
To: Jota Pin <jotapin2005@yahoo.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: Icalendar / exclude events older than 2 months
Date: Fri, 27 Apr 2018 01:34:57 +0200 [thread overview]
Message-ID: <87h8nxk0da.fsf@bzg.fr> (raw)
In-Reply-To: 04646305-5630-4DF9-89AF-4309D5CE73F6@yahoo.fr
Hi Jota,
Jota Pin <jotapin2005@yahoo.fr> writes:
> I would like to set a hook that excludes events older than 2 months
> from exporting using org-icalendar-combine-agenda-files.
>
> I do not know enough lisp for that, thanks for any help ,
Here is an idea on how to achieve this manually.
0. Set a dedicated tag in `org-icalendar-exclude-tags'
1. Create an agenda custom command listing events olders than
two months: ("@" tags-todo "+SCHEDULED<=\"<-2m>\"")
2. In such an agenda view, select all items in the region and
hit ":" (org-agenda-set-tags) to add your dedicated tag
Then export the calendar should exclude these events.
I've not tested, but you get the idea.
HTH,
--
Bastien
prev parent reply other threads:[~2018-04-26 23:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-14 16:38 Icalendar / exclude events older than 2 months Jota Pin
2018-04-26 23:34 ` Bastien [this message]
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=87h8nxk0da.fsf@bzg.fr \
--to=bzg@gnu.org \
--cc=emacs-orgmode@gnu.org \
--cc=jotapin2005@yahoo.fr \
/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).