Function: zone-when-idle
zone-when-idle is an interactive and byte-compiled function defined in
zone.el.gz.
Signature
(zone-when-idle SECS)
Documentation
Zone out when Emacs has been idle for SECS seconds.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/play/zone.el.gz
;;;; Zone when idle, or not.
(defun zone-when-idle (secs)
"Zone out when Emacs has been idle for SECS seconds."
(interactive "nHow long before I start zoning (seconds): ")
(if (timerp zone-timer)
(cancel-timer zone-timer))
(setq zone-timer nil)
(or (<= secs 0)
(setq zone-timer (run-with-idle-timer secs t 'zone))))