Don't insist on the presence of a mouse in strokes-mode

* lisp/strokes.el (strokes-mode): Don't test `display-mouse-p',
as the presence of a mouse may vary over the course of an Emacs
session.
This commit is contained in:
Po Lu 2025-02-19 10:13:00 +08:00
parent 4509662236
commit d05894f82d

View file

@ -1382,9 +1382,7 @@ Encode/decode your strokes with \\[strokes-encode-buffer],
\\{strokes-mode-map}"
:lighter strokes-lighter :global t
(cond ((not (display-mouse-p))
(error "Can't use Strokes without a mouse"))
(strokes-mode ; turn on strokes
(cond (strokes-mode ; turn on strokes
(and (file-exists-p strokes-file)
(null strokes-global-map)
(strokes-load-user-strokes))