[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: Agenda and weather forecast
From: |
Richard Riley |
Subject: |
[Orgmode] Re: Agenda and weather forecast |
Date: |
Sun, 12 Sep 2010 02:02:52 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) |
Julien Danjou <address@hidden> writes:
> Hi folks,
>
> If anybody is interested, I've wrote an small extension to put some
> weather forecasts in the agenda.
>
> It can be found here[1]. I've blogged about it yesterday, so if you're
> curious you can read the entry[2].
>
> Happy hacking,
>
> [1] http://julien.danjou.info/google-weather-el.html
> [2] http://julien.danjou.info/blog/
Here is a small patch to make it a bit cleaner in non GUI emacs (-nw) :-
--8<---------------cut here---------------start------------->8---
Modified google-weather.el
diff --git a/google-weather.el b/google-weather.el
index 393a3cf..898c91b 100644
--- a/google-weather.el
+++ b/google-weather.el
@@ -162,8 +162,8 @@ See `google-weather-retrieve-data' for the use of
EXPIRE-TIME."
`(,forecast-encoded-date
(low ,(google-weather-assoc 'low forecast))
(high ,(google-weather-assoc 'high forecast))
- (icon ,(concat google-weather-image-url
- (google-weather-assoc 'icon forecast)))
+ (icon ,(if (window-system) (concat google-weather-image-url
+ (google-weather-assoc 'icon forecast)) ""))
(condition ,(google-weather-assoc 'condition forecast)))))
(loop for entry in (google-weather-data->weather data)
when (eq (car entry) 'forecast_conditions)
--8<---------------cut here---------------end--------------->8---
--
☘ http://www.shamrockirishbar.com, http://www.richardriley.net
"Learning French is trivial: the word for horse is 'cheval' and
everything follows thusly."
- [Orgmode] Re: Agenda and weather forecast, (continued)
- Re: [Orgmode] Agenda and weather forecast, Jason McBrayer, 2010/09/09
- [Orgmode] Re: Agenda and weather forecast, Ivan Vilata i Balaguer, 2010/09/09
- [Orgmode] Re: Agenda and weather forecast, Flavio Souza, 2010/09/09
- Re: [Orgmode] Agenda and weather forecast, Eric S Fraga, 2010/09/10
- Re: [Orgmode] Agenda and weather forecast, Eric S Fraga, 2010/09/10
- Re: [Orgmode] Agenda and weather forecast, Christopher Allan Webber, 2010/09/11
- [Orgmode] Re: Agenda and weather forecast,
Richard Riley <=