From: Brian van den Broek <email@example.com>
Cc: emacs-orgmode <firstname.lastname@example.org>
Subject: Re: How to display sunrise and sunset in weekly agenda view, but only for today?
Date: Mon, 6 Feb 2012 19:14:39 +0200 [thread overview]
Message-ID: <CAF6Daj+BBcw7mo82C8_S3HBPHsbboXVOLeoshosmgCHQiELyTA@mail.gmail.com> (raw)
On 6 February 2012 17:08, Nick Dokos <email@example.com> wrote:
> Brian van den Broek <firstname.lastname@example.org> wrote:
>> Hi all,
>> I was looking at <http://orgmode.org/worg/org-hacks.html#sec-2-7> and
>> have used the code there to put sunrise and sunset into my agenda
>> views; most cool.
>> Poking around the thread that the worg page links to, I saw people
>> were interested in displaying these times only in agenda day views.
>> Konrad Hinsen posted an easy solution:
>> Never happy :-) what I'd like is to display the sun* times in the
>> weekly view, but only for today. I always work from the week view and
> Instead of Konrad's
> %%(when (eq span 'day) (diary-sunrise))
> %%(when (eq span 'day) (diary-sunset))
> you can add
> %%(when (equal date (calendar-current-date)) (diary-sunrise))
> %%(when (equal date (calendar-current-date)) (diary-sunset))
> so it will only happen on the current date.
Thanks, Nick; works a charm.
prev parent reply other threads:[~2012-02-06 17:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-06 14:41 How to display sunrise and sunset in weekly agenda view, but only for today? Brian van den Broek
2012-02-06 15:08 ` Nick Dokos
2012-02-06 17:14 ` Brian van den Broek [this message]
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:
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* 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
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).