Not parent poster, but I use AutoHotkey on my Windows machine. I use it all the time when grading math work, especially, since I have macros set up for all the most common math symbols (exponents, common fractions, ≠≈π√×÷¢–— etc.) I also have macros set up for common links I send out, an ISO date for today (mostly for naming files), and key sequences for some repetitive workflows.
The em dash was one of my first macros—and rightly so!