diff options
| author | Craig Jennings <c@cjennings.net> | 2025-10-28 17:30:39 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-10-28 17:30:39 -0500 |
| commit | 15dcf4d5ebc25c21cd14894f74f87a66dfdda6e1 (patch) | |
| tree | 1209233264f6f80338b3edf0b1955eb5adad9aea /modules | |
| parent | 0882cb0a6d8b2657ee8b75abf11b6b7cb79e3a52 (diff) | |
| download | dotemacs-15dcf4d5ebc25c21cd14894f74f87a66dfdda6e1.tar.gz dotemacs-15dcf4d5ebc25c21cd14894f74f87a66dfdda6e1.zip | |
feat:org-agenda: Enhance chime notifications and modeline
Extended the modeline display lookahead to 2 hours and added new
formatting for modeline content, including a compact time-until
format and title truncation for long event titles. Disabled chime
sound notifications for a quieter experience.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/org-agenda-config.el | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/modules/org-agenda-config.el b/modules/org-agenda-config.el index 7b4364243..30f4606c2 100644 --- a/modules/org-agenda-config.el +++ b/modules/org-agenda-config.el @@ -273,13 +273,25 @@ This allows a line to show in an agenda without being scheduled or a deadline." ;; This gives two notifications per event without any after-event notifications (setq chime-alert-time '(5 0)) - ;; Modeline display: show upcoming events within 60 minutes + ;; Modeline display: show upcoming events within 2 hours + (setq chime-enable-modeline t) (setq chime-modeline-lookahead 120) (setq chime-modeline-format " ⏰ %s") - ;; Chime sound: plays when notifications appear - (setq chime-play-sound t) - ;; Uses bundled chime.wav by default + ;; Modeline content: show title and countdown only (omit event time) + (setq chime-notification-text-format "%t (%u)") + + ;; Time-until format: compact style like " in 10m" or " in 1h 37m" + (setq chime-time-left-format-short " in %mm") ; Under 1 hour: " in 10m" + (setq chime-time-left-format-long " in %hh %mm") ; 1 hour+: " in 1h 37m" + (setq chime-time-left-format-at-event "right now") + + ;; Title truncation: limit long event titles to 15 characters + ;; This affects only the title, not the icon or countdown + (setq chime-max-title-length 25) ; "Very Long Me... ( in 10m)" + + ;; Chime sound: disabled + (setq chime-play-sound nil) ;; Notification settings (setq chime-notification-title "Reminder") |
