org-mode ã® agenda ã«å¤©æ°ã表示ãã
http://julien.danjou.info/google-weather-el.html ã® google-weather ã使ãã¨ãorg-mode ã® agenda ã«å¤©æ°ã表示ã§ããããã«ãªãã
è¨å®æ¹æ³
æ¬ä½ãã以ä¸ããå ¥æãã¦é©åãªå ´æ (.emacs.d ãªã©) ã«é ç½®ããã
- git://git.naquadah.org/google-weather-el.git
init.el ã«ä»¥ä¸ãè¨è¿°ã
(require 'google-weather) (require 'org-google-weather) (custom-set-variables '(org-google-weather-use-google-icons t))
agenda 対象ã®ãã¡ã¤ã«ã«ä»¥ä¸ãè¨è¿°ã
* Weather %%(org-google-weather "Tokyo" "ja")
ãTokyoããjaãã¯ã天æ°ã表示ãããå°åã«å¿ãã¦ä¿®æ£ããã*1
å¤ã emacs ã® url-cache.el ã«ã¯ bug ãããã®ã§ã以ä¸ãåèã«ãã¦ãä¿®æ£ãå¿ è¦ãä¿®æ£ããªãã¨ã¢ã¤ã³ã³ã表示ãããªããã¨ãããã(ãã£ãã·ã¥ã使ç¨ããã¨ãã ã表示ãããªããªã)
ä¿®æ£ç®æã®ã¿å¼ç¨ãã¦ããã
=== modified file 'lisp/url/url-cache.el' --- a/lisp/url/url-cache.el 2011-01-25 04:08:28 +0000 +++ b/lisp/url/url-cache.el 2011-07-06 07:47:15 +0000 @@ -192,6 +192,7 @@ (defun url-cache-extract (fnam) "Extract FNAM from the local disk cache." (erase-buffer) + (set-buffer-multibyte nil) (insert-file-contents-literally fnam)) (defun url-cache-expired (url &optional expire-time)
*1:Google Weather API çã«ã¯ããããå¤ããã¨åå¾ URL ãå¤ããã http://www.google.com/ig/api?weather=Tokyo&hl=ja