97 |
(defcustom type-break-good-rest-interval (/ type-break-interval 6) |
(defcustom type-break-good-rest-interval (/ type-break-interval 6) |
98 |
"*Number of seconds of idle time considered to be an adequate typing rest. |
"*Number of seconds of idle time considered to be an adequate typing rest. |
99 |
|
|
100 |
When this variable is non-`nil', emacs checks the idle time between |
When this variable is non-nil, emacs checks the idle time between |
101 |
keystrokes. If this idle time is long enough to be considered a \"good\" |
keystrokes. If this idle time is long enough to be considered a \"good\" |
102 |
rest from typing, then the next typing break is simply rescheduled for later. |
rest from typing, then the next typing break is simply rescheduled for later. |
103 |
|
|
145 |
:group 'type-break) |
:group 'type-break) |
146 |
|
|
147 |
(defcustom type-break-query-mode t |
(defcustom type-break-query-mode t |
148 |
"*Non-`nil' means ask whether or not to prompt user for breaks. |
"*Non-nil means ask whether or not to prompt user for breaks. |
149 |
If so, call the function specified in the value of the variable |
If so, call the function specified in the value of the variable |
150 |
`type-break-query-function' to do the asking." |
`type-break-query-function' to do the asking." |
151 |
:type 'boolean |
:type 'boolean |
156 |
It should take a string as an argument, the prompt. |
It should take a string as an argument, the prompt. |
157 |
Usually this should be set to `yes-or-no-p' or `y-or-n-p'. |
Usually this should be set to `yes-or-no-p' or `y-or-n-p'. |
158 |
|
|
159 |
To avoid being queried at all, set `type-break-query-mode' to `nil'." |
To avoid being queried at all, set `type-break-query-mode' to nil." |
160 |
:type '(radio function |
:type '(radio function |
161 |
(function-item yes-or-no-p) |
(function-item yes-or-no-p) |
162 |
(function-item y-or-n-p)) |
(function-item y-or-n-p)) |
222 |
;; Mode line frobs |
;; Mode line frobs |
223 |
|
|
224 |
(defcustom type-break-mode-line-message-mode nil |
(defcustom type-break-mode-line-message-mode nil |
225 |
"*Non-`nil' means put type-break related messages in the mode line. |
"*Non-nil means put type-break related messages in the mode line. |
226 |
Otherwise, messages typically go in the echo area. |
Otherwise, messages typically go in the echo area. |
227 |
|
|
228 |
See also `type-break-mode-line-format' and its members." |
See also `type-break-mode-line-format' and its members." |