From bf989bb594680eb2e3b69f55752353aa33cb47bb Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 13 Nov 2025 14:14:45 -0600 Subject: refactor: core: rename wttrin-mode-line-favorite-location to wttrin-favorite-location Renamed variable to remove 'mode-line' prefix, making it usable for future location-based features beyond mode-line display. Updated all references in code, tests, and documentation. All 187 tests passing. --- README.org | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'README.org') diff --git a/README.org b/README.org index 2b4904c..d7ebd72 100644 --- a/README.org +++ b/README.org @@ -188,7 +188,7 @@ To enable the mode-line weather display, set your favorite location and enable a (use-package wttrin :ensure t :custom - (wttrin-mode-line-favorite-location "Berkeley, CA") + (wttrin-favorite-location "Berkeley, CA") (wttrin-mode-line-auto-enable t)) #+end_src @@ -211,7 +211,7 @@ You can customize several aspects of the mode-line weather display: #+begin_src emacs-lisp ;; Set your favorite location (required for mode-line display) - (setq wttrin-mode-line-favorite-location "New Orleans, LA") + (setq wttrin-favorite-location "New Orleans, LA") ;; Auto-enable mode-line weather on startup (setq wttrin-mode-line-auto-enable t) @@ -242,7 +242,7 @@ If wttrin isn't working as expected, enable debug mode to see detailed logging o ;; Set debug BEFORE wttrin loads (setq wttrin-debug t) :custom - (wttrin-mode-line-favorite-location "Your City")) + (wttrin-favorite-location "Your City")) #+end_src *❌ This will NOT work* (debug set too late): @@ -251,7 +251,7 @@ If wttrin isn't working as expected, enable debug mode to see detailed logging o :ensure t :custom (wttrin-debug t) ;; TOO LATE - wttrin already loaded! - (wttrin-mode-line-favorite-location "Your City")) + (wttrin-favorite-location "Your City")) #+end_src **** For manual/development installations: @@ -262,7 +262,7 @@ If wttrin isn't working as expected, enable debug mode to see detailed logging o ;; Set debug BEFORE wttrin loads (setq wttrin-debug t) :custom - (wttrin-mode-line-favorite-location "Your City")) + (wttrin-favorite-location "Your City")) #+end_src *** Viewing Debug Output -- cgit v1.2.3