From 18b89fbdf3b5b13ccfd0d3a09f6bb2925addbab2 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Tue, 4 Nov 2025 10:44:07 -0600 Subject: refactor:wttrin: Make asynchronous loading standard Make asynchronous loading the only mode of operation. It's well tested and doesn't lock up Emacs during fetching. Synchronous loading code has been removed. --- README.org | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'README.org') diff --git a/README.org b/README.org index 4e375d0..f838ddf 100644 --- a/README.org +++ b/README.org @@ -155,21 +155,11 @@ Wttrin's default is to select the unit system appropriate for the location you q (setq wttrin-unit-system nil) ;; the default of using units appropriate for the queried location. #+end_src -*** Advanced Settings -Most users won't need to adjust these, but they're available if you want to fine-tune Wttrin's behavior. - -**** Asynchronous Loading -By default, Wttrin fetches weather data asynchronously, so Emacs stays responsive while waiting for the network. If you prefer synchronous loading (blocking until data arrives), you can disable async mode: - -#+begin_src emacs-lisp - (setq wttrin-use-async nil) ;; Use synchronous loading instead -#+end_src - -**** Cache Settings +*** Cache Settings Wttrin caches weather data to reduce API calls and improve responsiveness. The cache holds data for 15 minutes by default, with a maximum of 50 entries. If you're checking weather frequently or want longer cache times, you can adjust these: #+begin_src emacs-lisp - (setq wttrin-cache-ttl 1800) ;; Cache for 30 minutes (in seconds) + (setq wttrin-cache-ttl (* 30 60)) ;; Cache for 30 minutes (in seconds) (setq wttrin-cache-max-entries 100) ;; Store up to 100 cached locations #+end_src -- cgit v1.2.3