Function: type-break-schedule

type-break-schedule is an interactive and byte-compiled function defined in type-break.el.gz.

Signature

(type-break-schedule &optional TIME START INTERVAL)

Documentation

Schedule a typing break for TIME seconds from now.

If time is not specified it defaults to type-break-interval. START and INTERVAL are used when recovering a break. START is the start of the break (defaults to now). INTERVAL is the full length of an interval (defaults to TIME).

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/type-break.el.gz
(defun type-break-schedule (&optional time start interval)
  "Schedule a typing break for TIME seconds from now.
If time is not specified it defaults to `type-break-interval'.
START and INTERVAL are used when recovering a break.
START is the start of the break (defaults to now).
INTERVAL is the full length of an interval (defaults to TIME)."
  (interactive (list (and current-prefix-arg
                          (prefix-numeric-value current-prefix-arg))))
  (or time (setq time type-break-interval))
  (type-break-check-post-command-hook)
  (type-break-cancel-schedule)
  (type-break-time-warning-schedule time 'reset)
  (type-break-run-at-time (max 1 time) nil 'type-break-alarm)
  (setq type-break-time-next-break
        (type-break-time-sum start (or interval time))))