Automating screencasts

  1. Install asciicast (opens in a new tab) and an asciicast-to-gif converter such as agg (opens in a new tab)
  2. Write a session script (see demo.el in this repository for a minimal example, or run-command’s demo.el (opens in a new tab) for a real-life example) and save it as e.g. my-session-script.el
  3. Launch with:
$ asciinema rec demo.cast -c 'emacs -nw -Q -l director-bootstrap.el -l my-session-script.el'
  1. Review the recording with:
asciinema play demo.cast
  1. Convert to a gif with:
agg demo.cast demo.gif

See Running in a controlled environment for information about director-bootstrap.el.