summaryrefslogtreecommitdiff
path: root/lisp/org-timer.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/org-timer.el')
-rw-r--r--lisp/org-timer.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/org-timer.el b/lisp/org-timer.el
index 2351c4c..db7760d 100644
--- a/lisp/org-timer.el
+++ b/lisp/org-timer.el
@@ -370,6 +370,8 @@ VALUE can be `on', `off', or `pause'."
(message "%d minute(s) %d seconds left before next time out"
rmins rsecs))))
+(defvar org-clock-sound)
+
;;;###autoload
(defun org-timer-set-timer (&optional opt)
"Prompt for a duration and set a timer.
@@ -429,7 +431,7 @@ replace any running timer."
(run-with-timer
secs nil `(lambda ()
(setq org-timer-current-timer nil)
- (org-notify ,(format "%s: time out" hl) t)
+ (org-notify ,(format "%s: time out" hl) ,org-clock-sound)
(setq org-timer-timer-is-countdown nil)
(org-timer-set-mode-line 'off)
(run-hooks 'org-timer-done-hook))))