Created
November 2, 2020 12:48
-
-
Save fgui/01ede14ee10140775174f38d3df6ac3d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun weather-ametlla () | |
"Obre un buffer amb la predicció horaria de temps a l'Ametlla segons meteocat.cat." | |
(interactive) | |
(let ((buffer (get-buffer-create "*weather ametlla*"))) | |
(switch-to-buffer buffer) | |
(setq buffer-read-only nil) | |
(erase-buffer) | |
(shell-command "w3m -dump https://m.meteo.cat/prediccio-per-hores?codi=080057" buffer) | |
(local-set-key "q" 'kill-this-buffer) | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment