From 23b3df60eb619351fada7b83c9646c86e1addbd2 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Tue, 11 Nov 2025 17:41:40 -0600 Subject: 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. --- modules/chrono-tools.el | 46 +++++++++++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 19 deletions(-) (limited to 'modules') 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 -- cgit v1.2.3