From 7a0141f90ed214e1a7d87c2c1d04d7b0d084db09 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sat, 4 Apr 2026 13:59:45 -0500 Subject: Improve defaults: 2-hour modeline window, notify at event time Bump chime-modeline-lookahead-minutes from 60 to 120 so events within the next 2 hours show in the modeline. The old 60-minute default hid events most users would expect to see. Add (0 . high) to default chime-alert-intervals so users get a notification at event time in addition to 10 minutes before. The single-notification default meant a missed alert had no backup. --- README.org | 17 ++++++++++------- chime.el | 4 ++-- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/README.org b/README.org index 95a7c1e..c353162 100644 --- a/README.org +++ b/README.org @@ -94,7 +94,7 @@ This package is NOT YET available on MELPA. ;; Modeline display (see "Modeline Display" section for more options) (setq chime-enable-modeline t) - (setq chime-modeline-lookahead-minutes 60) + (setq chime-modeline-lookahead-minutes 120) (setq chime-modeline-format " ⏰ %s") ;; Notification settings @@ -177,7 +177,10 @@ Lower values make notifications more responsive but increase system load. Higher Set when to receive notifications and their urgency levels using (minutes . severity) pairs: #+BEGIN_SRC elisp -;; Single notification 10 minutes before with medium urgency +;; Default: 10 minutes before (medium) and at event time (high) +(setq chime-alert-intervals '((10 . medium) (0 . high))) + +;; Single notification 10 minutes before (setq chime-alert-intervals '((10 . medium))) ;; Multiple notifications with escalating urgency @@ -240,8 +243,8 @@ Display your next upcoming event in your modeline: ;; Enable/disable modeline display (default: t) (setq chime-enable-modeline t) -;; Show events up to 60 minutes ahead (default: 60) -(setq chime-modeline-lookahead-minutes 60) +;; Show events up to 2 hours ahead (default: 120) +(setq chime-modeline-lookahead-minutes 120) ;; Customize the modeline prefix format (default: " ⏰ %s") (setq chime-modeline-format " [Next: %s]") @@ -339,8 +342,8 @@ Uses =format-time-string= codes (=%a= weekday, =%b= month, =%d= day, =%Y= year, The tooltip can show events beyond the modeline lookahead window. By default, it shows events up to 1 week (168 hours) in the future, while the modeline only shows events within the next hour: #+BEGIN_SRC elisp -;; Modeline shows events within next 60 minutes (default) -(setq chime-modeline-lookahead-minutes 60) +;; Modeline shows events within next 2 hours (default: 120) +(setq chime-modeline-lookahead-minutes 120) ;; Tooltip shows events within next 168 hours / 1 week (default) (setq chime-tooltip-lookahead-hours 168) @@ -1015,7 +1018,7 @@ For Monday-Friday events, you can either: ;; Modeline display - compact format (setq chime-enable-modeline t) - (setq chime-modeline-lookahead-minutes 120) ; Show events 2 hrs ahead + (setq chime-modeline-lookahead-minutes 180) ; Show events 3 hrs ahead (setq chime-modeline-format " ⏰%s") ; Minimal prefix (setq chime-notification-text-format "%t (%u)") ; Title + countdown only (setq chime-display-time-format-string "%H:%M") ; 24-hour time diff --git a/chime.el b/chime.el index e79ca1e..0907d67 100644 --- a/chime.el +++ b/chime.el @@ -78,7 +78,7 @@ "Chime customization options." :group 'org) -(defcustom chime-alert-intervals '((10 . medium)) +(defcustom chime-alert-intervals '((10 . medium) (0 . high)) "Alert intervals with severity levels for upcoming events. Each element is a cons cell (MINUTES . SEVERITY) where: - MINUTES: Number of minutes before event to notify (0 = at event time) @@ -341,7 +341,7 @@ chime-mode is active." :group 'chime :type 'string) -(defcustom chime-modeline-lookahead-minutes 60 +(defcustom chime-modeline-lookahead-minutes 120 "Minutes ahead to look for next event to display in modeline. Should be larger than notification alert times for advance awareness. Set to 0 to disable modeline display. -- cgit v1.2.3