diff options
| author | Craig Jennings <c@cjennings.net> | 2026-04-04 13:32:47 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-04-04 13:32:47 -0500 |
| commit | f550d134f4a1ad30c425285c4d390f7277cbee32 (patch) | |
| tree | 77574fc1cb7e6480b00c722e13e6f939b8deacb7 /chime.el | |
| parent | e681fcbc92c15cbc4e01ab879c3b407c715dc824 (diff) | |
| download | chime-f550d134f4a1ad30c425285c4d390f7277cbee32.tar.gz chime-f550d134f4a1ad30c425285c4d390f7277cbee32.zip | |
Remove dead code and reduce default tooltip lookahead to 1 week
Remove chime--agenda-buffer-name (unused variable) and
chime--extract-birthday-year (superseded by chime--parse-birthday).
Reduce chime-tooltip-lookahead-hours from 8760 (1 year) to 168
(1 week). The 1-year default caused org-agenda-list to scan a
365-day span every check cycle, which is slow for large org
collections. The tooltip only shows 5 events, so a week is
sufficient for most users.
Diffstat (limited to 'chime.el')
| -rw-r--r-- | chime.el | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -373,16 +373,17 @@ When nil (default), left-click does nothing." :type '(choice (const :tag "No calendar URL" nil) (string :tag "Calendar URL"))) -(defcustom chime-tooltip-lookahead-hours 8760 +(defcustom chime-tooltip-lookahead-hours 168 "Hours ahead to look for events in tooltip. Separate from modeline lookahead window. -Default is 8760 hours (1 year), showing all future events. +Default is 168 hours (1 week). The actual number of events shown is limited by `chime-modeline-tooltip-max-events'. -Set to a smaller value to limit tooltip by time as well as count. -Example: Set to 24 to show only today's and tomorrow's events, -or keep at default to show next N events regardless of distance." +Set to a larger value (e.g., 8760 for 1 year) to see distant events, +or smaller (e.g., 24) for just today and tomorrow. +Note: larger values increase the org-agenda-list span in the async +subprocess, which may slow event checks for large org collections." :package-version '(chime . "0.6.0") :group 'chime :type '(integer :tag "Hours")) @@ -587,8 +588,6 @@ Set to t to enable debug functions: "Count of consecutive async check failures. After `chime-max-consecutive-failures' failures, a warning is displayed.") -(defvar chime--agenda-buffer-name "*chime-agenda*" - "Name for temporary \\='org-agenda\\=' buffer.") (defvar chime--last-check-time (seconds-to-time 0) "Last time checked for events.") |
