save geohash

This commit is contained in:
Jakub 2025-12-09 20:56:32 +08:00
parent f13a304654
commit 41d3ab7b73

View file

@ -50,10 +50,10 @@
(cdr (assoc 'postcode alst))) (cdr (assoc 'postcode alst)))
(cdr (assoc 'geohash alst)))) (cdr (assoc 'geohash alst))))
res))) res)))
(customize-set-variable 'theurgy-geohash (cdr (assoc (completing-read "Select Location: " candidates) candidates)))))))) (customize-save-variable 'theurgy-geohash (cdr (assoc (completing-read "Select Location: " candidates) candidates))))))))
(defvar forecast-timer nil) (defvar forecast-timer nil)
(defvar forecast-location "forecast") ;; The location of the cached forecast, related to the emacs user directory (defvar forecast-location "forecast") ;; The location of the cached forecast, relative to the emacs user directory
(defun theurgy-weather-fetch-forecast () (defun theurgy-weather-fetch-forecast ()
"Fetch and save the weather forecast." "Fetch and save the weather forecast."