From: Brian van den Broek <brian.van.den.broek@gmail.com>
To: nicholas.dokos@hp.com
Cc: emacs-orgmode <emacs-orgmode@gnu.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)
In-Reply-To: <23864.1328540930@alphaville>
On 6 February 2012 17:08, Nick Dokos <nicholas.dokos@hp.com> wrote:
> Brian van den Broek <brian.van.den.broek@gmail.com> 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:
>> <http://article.gmane.org/gmane.emacs.orgmode/38879>.
>>
>> 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
<snip>
> 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.
Best,
Brian vdB
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]
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=CAF6Daj+BBcw7mo82C8_S3HBPHsbboXVOLeoshosmgCHQiELyTA@mail.gmail.com \
--to=brian.van.den.broek@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=nicholas.dokos@hp.com \
/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).