Skip to content

Instantly share code, notes, and snippets.

View tomdavey's full-sized avatar

Tom Davey tomdavey

View GitHub Profile
@jdtsmith
jdtsmith / repeat-change-cursor-color.el
Last active July 4, 2024 23:15
Emacs: change cursor color during active repeat-mode commands
(let ((orig (default-value 'repeat-echo-function))
rcol ccol in-repeat)
(setq
repeat-echo-function
(lambda (map)
(if orig (funcall orig map))
(unless rcol (setq rcol (face-foreground 'error)))
(if map
(unless in-repeat ; new repeat sequence
(setq in-repeat t