aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaúl Benencia <id@rbenencia.name>2026-01-14 10:41:06 -0300
committerRaúl Benencia <id@rbenencia.name>2026-01-14 10:41:06 -0300
commitfe98cc60e7b6a9fc607c9687e0f7c45fa067a74f (patch)
tree7d0ae64577129f980f635748662634e3d0f2c91b
parent92c0b2c6b561700da0e59c2b19cabcf7cb7b3803 (diff)
fix: idle-check-interval nil
-rw-r--r--org-tempus.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/org-tempus.el b/org-tempus.el
index 6251f9a..86d4583 100644
--- a/org-tempus.el
+++ b/org-tempus.el
@@ -210,12 +210,14 @@ When nil, start session tracking on clock-in."
(run-at-time org-tempus-update-interval
org-tempus-update-interval
#'org-tempus--update-mode-line))
- (when (> org-tempus-idle-check-interval 0)
+ (when (and (numberp org-tempus-idle-check-interval)
+ (> org-tempus-idle-check-interval 0))
(setq org-tempus--idle-timer
(run-at-time org-tempus-idle-check-interval
org-tempus-idle-check-interval
#'org-tempus--handle-idle)))
- (when (> org-tempus-notification-reset-seconds 0)
+ (when (and (numberp org-tempus-notification-reset-seconds)
+ (> org-tempus-notification-reset-seconds 0))
(setq org-tempus--notification-reset-timer
(run-at-time org-tempus-notification-reset-seconds
org-tempus-notification-reset-seconds
@@ -885,6 +887,10 @@ Return non-nil when an auto clock-in occurs."
:global t
(if org-tempus-mode
(progn
+ (unless (numberp org-tempus-idle-check-interval)
+ (setq org-tempus-idle-check-interval 60))
+ (unless (numberp org-tempus-notification-reset-seconds)
+ (setq org-tempus-notification-reset-seconds 3600))
(org-tempus--reset-notification-state)
(org-tempus--start-timers)
(add-hook 'org-clock-in-hook #'org-tempus--update-session-start)
nihil fit ex nihilo