Variable: strokes-mode
strokes-mode is a customizable variable defined in strokes.el.gz.
Value
nil
Documentation
Non-nil if Strokes mode is enabled.
See the strokes-mode(var)/strokes-mode(fun) command
for a description of this minor mode.
Setting this variable directly does not take effect;
either customize it (see the info node (emacs)Easy Customization)
or call the function strokes-mode(var)/strokes-mode(fun).
Probably introduced at or before Emacs version 31.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/strokes.el.gz
;;;###autoload
(define-minor-mode strokes-mode
"Toggle Strokes mode, a global minor mode.
\\<strokes-mode-map>
Strokes are pictographic mouse gestures which invoke commands.
Strokes are invoked with \\[strokes-do-stroke]. You can define
new strokes with \\[strokes-global-set-stroke]. See also
\\[strokes-do-complex-stroke] for `complex' strokes.
To use strokes for pictographic editing, such as Chinese/Japanese, use
\\[strokes-compose-complex-stroke], which draws strokes and inserts them.
Encode/decode your strokes with \\[strokes-encode-buffer],
\\[strokes-decode-buffer].
\\{strokes-mode-map}"
:lighter strokes-lighter :global t
(cond (strokes-mode ; turn on strokes
(and (file-exists-p strokes-file)
(null strokes-global-map)
(strokes-load-user-strokes))
(add-hook 'kill-emacs-query-functions
#'strokes-prompt-user-save-strokes)
;; FIXME: Should this be something like `focus-in-hook'?
;; That variable is obsolete, but `select-frame-hook' has
;; never existed in Emacs.
;;(add-hook 'select-frame-hook
;; #'strokes-update-window-configuration)
(strokes-update-window-configuration))
(t ; turn off strokes
(if (get-buffer strokes-buffer-name)
(kill-buffer (get-buffer strokes-buffer-name)))
;; FIXME: Same as above.
;;(remove-hook 'select-frame-hook
;; #'strokes-update-window-configuration)
)))