|
@@ -27,6 +27,8 @@
|
|
|
|
|
|
;; This file contains the relative timer code for Org-mode
|
|
;; This file contains the relative timer code for Org-mode
|
|
|
|
|
|
|
|
+;;; Code:
|
|
|
|
+
|
|
(require 'org)
|
|
(require 'org)
|
|
|
|
|
|
(declare-function org-show-notification "org-clock" (parameters))
|
|
(declare-function org-show-notification "org-clock" (parameters))
|
|
@@ -110,7 +112,8 @@ the region 0:00:00."
|
|
(run-hooks 'org-timer-start-hook))))
|
|
(run-hooks 'org-timer-start-hook))))
|
|
|
|
|
|
(defun org-timer-pause-or-continue (&optional stop)
|
|
(defun org-timer-pause-or-continue (&optional stop)
|
|
- "Pause or continue the relative timer. With prefix arg, stop it entirely."
|
|
|
|
|
|
+ "Pause or continue the relative timer.
|
|
|
|
+With prefix arg STOP, stop it entirely."
|
|
(interactive "P")
|
|
(interactive "P")
|
|
(cond
|
|
(cond
|
|
(stop (org-timer-stop))
|
|
(stop (org-timer-stop))
|
|
@@ -145,8 +148,9 @@ the region 0:00:00."
|
|
(defun org-timer (&optional restart)
|
|
(defun org-timer (&optional restart)
|
|
"Insert a H:MM:SS string from the timer into the buffer.
|
|
"Insert a H:MM:SS string from the timer into the buffer.
|
|
The first time this command is used, the timer is started. When used with
|
|
The first time this command is used, the timer is started. When used with
|
|
-a `C-u' prefix, force restarting the timer.
|
|
|
|
-When used with a double prefix arg `C-u C-u', change all the timer string
|
|
|
|
|
|
+a \\[universal-argument] prefix, force restarting the timer.
|
|
|
|
+When used with a double prefix argument \
|
|
|
|
+\\[universal-argument] \\universal-argument], change all the timer string
|
|
in the region by a fixed amount. This can be used to recalibrate a timer
|
|
in the region by a fixed amount. This can be used to recalibrate a timer
|
|
that was not started at the correct moment."
|
|
that was not started at the correct moment."
|
|
(interactive "P")
|
|
(interactive "P")
|