I'm using Emacs 27.2 on macOS 10.13.16 from the railwaycat build. I set my cursor color to a red color using
(set-cursor-color "red")
As soon as I type controlg, the cursor color reverts to black. Investigating the code executed by that key binding, which is keyboard-quit
in simple.el
, I find that the command that causes the color reset is signal
, an Emacs built-in.
Why does this happen, and how can I get Emacs to stop changing my cursor color?