From: torys.anderson@gmail.com (Tory S. Anderson)
To: Michael Eliachevitch <m.eliachevitch@gmx.net>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Emacs calendar to display nth weekay in month, e.g. every 3rd Wednesday
Date: Sun, 11 Jan 2015 15:37:26 -0500 [thread overview]
Message-ID: <87twzxdpfd.fsf@gmail.com> (raw)
In-Reply-To: <54B2D702.3020307@gmx.net> (Michael Eliachevitch's message of "Sun, 11 Jan 2015 21:03:14 +0100")
I accomplish this using Org-mode agenda for all my calendaring (highly recommend it) and lines like the following in an agenda-loaded org file:
** 8:00-9:00 Ward Council Meeting: 2nd and 4th Sunday
<%%(diary-float t 0 2)>
<%%(diary-float t 0 4)>
Does that help? For me, probably 85% of my emacs usage is org-mode (planning, note-taking, powerpoint/doc generation); it ships with emacs, so if you haven't looked into it yet, I would strongly recommend it. They also have a mailing list parallel to this one.
- Tory
Michael Eliachevitch <m.eliachevitch@gmx.net> writes:
> Hi,
>
> There are several events for me each month which take place for example
> on the 3rd Wednesday or on the first Tuesday of each month. Is there
> some way to add them to my diary file, so that they will be added to the
> list of diary entries and displayed in the calendar for all dates to
> which this rule applies?
>
> Maybe there is already some functionality to do this, but I haven't
> found it yet. At least it's justnot a simple regex on the date. If
> there is something like this, I would like to know.
>
> I am actually a newbie when it comes to programming in emacs lisp. I
> have just started this week. I managed to create a function that checks
> if a date is for example a 3rd Wednesday, but I am still not sure how to
> combine it with the diary. I would have to implement some special syntax
> for entering it into the diary file and add some regexes for that and
> should study the diary code more... I still haven't figured out how
> entries are added to the diary-entries-list.
>
> So if somebody who knows the emacs calendar could provide some help or
> hints, I would be really thankful.
>
> Greetings,
> Michael
next prev parent reply other threads:[~2015-01-11 20:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-11 20:03 Emacs calendar to display nth weekay in month, e.g. every 3rd Wednesday Michael Eliachevitch
2015-01-11 20:37 ` Tory S. Anderson [this message]
2015-01-20 3:01 ` Robert Thorpe
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87twzxdpfd.fsf@gmail.com \
--to=torys.anderson@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=m.eliachevitch@gmx.net \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.