summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-11-11 17:41:40 -0600
committerCraig Jennings <c@cjennings.net>2025-11-11 17:42:30 -0600
commit23b3df60eb619351fada7b83c9646c86e1addbd2 (patch)
tree0bd49837f99b0ca77fd2c12affd58ed492f70737
parent72537381b5d98c6295c999bdec3c39ec0a7e3d42 (diff)
chrono-tools: integrate and test time-zones package
Replaced the world-clock configuration with the new time-zones package to provide an interactive world clock with fuzzy search and time shifting features. The previous world-clock code is commented out for potential fallback testing.
-rw-r--r--.time-zones.el7
-rw-r--r--modules/chrono-tools.el46
2 files changed, 34 insertions, 19 deletions
diff --git a/.time-zones.el b/.time-zones.el
new file mode 100644
index 00000000..26458afc
--- /dev/null
+++ b/.time-zones.el
@@ -0,0 +1,7 @@
+;;; Saved time-zones city list
+;; This file is auto-generated. Do not edit manually.
+
+(setq time-zones--city-list
+ '(((country . "Germany") (state . "Berlin") (city . "Berlin") (timezone . "Europe/Berlin") (latitude . "52.52437000") (longitude . "13.41053000")) ((country . "India") (state . "Delhi") (city . "Delhi") (timezone . "Asia/Kolkata") (latitude . "28.65195000") (longitude . "77.23149000")) ((country . "United States") (state . "New York") (city . "New York") (timezone . "America/New_York") (latitude . "40.66677000") (longitude . "-73.88236000")) ((country . "South Korea") (state . "Seoul") (city . "Seoul") (timezone . "Asia/Seoul") (latitude . "37.56600000") (longitude . "126.97840000")) ((country . "Singapore") (state . "Central Singapore") (city . "Singapore") (timezone . "Asia/Singapore") (latitude . "1.28967000") (longitude . "103.85007000")) ((country . "Saint Lucia") (state . "Soufrière") (city . "Soufrière") (timezone . "America/St_Lucia") (latitude . "13.85616000") (longitude . "-61.05660000")) ((country . "Armenia") (state . "Yerevan") (city . "Yerevan") (timezone . "Asia/Yerevan") (latitude . "40.18111000") (longitude . "44.51361000")) ((country . "Turkey") (state . "İstanbul") (city . "Istanbul") (timezone . "Europe/Istanbul") (latitude . "41.00537020") (longitude . "28.68251620")) ((country . "Ukraine") (state . "Kyiv") (city . "Kyiv") (timezone . "Europe/Kiev") (latitude . "50.45466000") (longitude . "30.52380000")) ((country . "Italy") (state . "Campania") (city . "Naples") (timezone . "Europe/Rome") (latitude . "40.85216000") (longitude . "14.26811000")) ((country . "Spain") (state . "Barcelona") (city . "Barcelona") (timezone . "Europe/Madrid") (latitude . "41.38879000") (longitude . "2.15899000")) ((country . "Ireland") (state . "Leinster") (city . "Dublin") (timezone . "Europe/Dublin") (latitude . "53.33306000") (longitude . "-6.24889000")) ((country . "Greece") (state . "Attica") (city . "Athens") (timezone . "Europe/Athens") (latitude . "37.98376000") (longitude . "23.72784000")) ((country . "China") (state . "Shanghai") (city . "Shanghai") (timezone . "Asia/Shanghai") (latitude . "31.22222000") (longitude . "121.45806000")) ((country . "Japan") (state . "Tokyo") (city . "Tokyo") (timezone . "Asia/Tokyo") (latitude . "35.68950000") (longitude . "139.69171000")) ((country . "United States") (state . "Hawaii") (city . "Honolulu") (timezone . "Pacific/Honolulu") (latitude . "21.30694000") (longitude . "-157.85833000")) ((country . "Portugal") (state . "Lisbon") (city . "Lisbon") (timezone . "Europe/Lisbon") (latitude . "38.72635000") (longitude . "-9.14843000")) ((country . "France") (state . "Île-de-France") (city . "Paris") (timezone . "Europe/Paris") (latitude . "48.85340000") (longitude . "2.34860000")) ((country . "United Kingdom") (state . "Kensington and Chelsea") (city . "London") (timezone . "Europe/London") (latitude . "51.50000000") (longitude . "-0.16667000")) ((country . "United States") (state . "California") (city . "San Francisco") (timezone . "America/Los_Angeles") (latitude . "37.77493000") (longitude . "-122.41942000")) ((country . "United States") (state . "Louisiana") (city . "New Orleans") (timezone . "America/Chicago") (latitude . "29.95465000") (longitude . "-90.07507000"))))
+(setq time-zones--home-city
+ '((country . "United States") (state . "Louisiana") (city . "New Orleans") (timezone . "America/Chicago") (latitude . "29.95465000") (longitude . "-90.07507000")))
diff --git a/modules/chrono-tools.el b/modules/chrono-tools.el
index e68c2a50..9929bad5 100644
--- a/modules/chrono-tools.el
+++ b/modules/chrono-tools.el
@@ -5,7 +5,7 @@
;;
;; This module centralizes configuration for Emacs time-related tools:
;;
-;; – world-clock: predefined city list and custom time format
+;; – time-zones: interactive world clock with fuzzy search and time shifting
;; – calendar: quick navigation keybindings by day, month, and year
;; – tmr: lightweight timer setup with sounds, notifications, and history
;;
@@ -13,24 +13,32 @@
(require 'user-constants)
-(use-package time
- :ensure nil ;; built-in
- :defer 0.5
- :bind ("C-x c" . world-clock)
- :config
- (setq world-clock-list
- '(("Pacific/Honolulu" " Honolulu")
- ("America/Los_Angeles" " San Francisco, LA")
- ("America/Chicago" " Chicago, New Orleans")
- ("America/New_York" " New York, Boston")
- ("Etc/UTC" " UTC =================")
- ("Europe/London" " London, Lisbon")
- ("Europe/Paris" " Paris, Berlin, Rome")
- ("Europe/Athens" " Athens, Istanbul, Moscow")
- ("Asia/Kolkata" " India")
- ("Asia/Shanghai" " Shanghai, Singapore")
- ("Asia/Tokyo" " Tokyo, Seoul")))
- (setq world-clock-time-format " %a, %d %b @ %I:%M %p %Z"))
+;; -------------------------------- Time Zones ---------------------------------
+
+(use-package time-zones
+ :defer
+ :commands time-zones
+ :bind ("C-x c" . time-zones))
+
+;; Commented out old world-clock config while testing time-zone package above
+;; (use-package time
+;; :ensure nil ;; built-in
+;; :defer 0.5
+;; :bind ("C-x c" . world-clock)
+;; :config
+;; (setq world-clock-list
+;; '(("Pacific/Honolulu" " Honolulu")
+;; ("America/Los_Angeles" " San Francisco, LA")
+;; ("America/Chicago" " Chicago, New Orleans")
+;; ("America/New_York" " New York, Boston")
+;; ("Etc/UTC" " UTC =================")
+;; ("Europe/London" " London, Lisbon")
+;; ("Europe/Paris" " Paris, Berlin, Rome")
+;; ("Europe/Athens" " Athens, Istanbul, Moscow")
+;; ("Asia/Kolkata" " India")
+;; ("Asia/Shanghai" " Shanghai, Singapore")
+;; ("Asia/Tokyo" " Tokyo, Seoul")))
+;; (setq world-clock-time-format " %a, %d %b @ %I:%M %p %Z"))
(use-package calendar
:ensure nil ;; built-in