I would like to record a medium-length screencast of some Emacs functionality using asciinema in a terminal. I could just start asciinema
, then emacs -nw
, do the recording, then stop. But I find that I always make multiple mistakes.
So I thought that it would be great if I could just write a "script" of keystrokes in some format, that would be fed to Emacs. Like replaying a keyboard macro, but a fairly long one, and with delays between keys (otherwise the recording goes way too fast).
Is this possible somehow? I am willing to do some elisp programming, but don't know where to start. Eg I could record my script as a list,
(list (kbd "C-x C-f") "filename.el" (kbd "C-e") (kbd "C-x C-e") ...)
and iterate through it, converting keystrokes and sending strings by character verbatim, but how do I "send" the result to Emacs?
It would be great if buffer switching etc would work.