Skip to content

Instantly share code, notes, and snippets.

View michaelmhoffman's full-sized avatar

Michael Hoffman michaelmhoffman

View GitHub Profile
@jdtsmith
jdtsmith / repeat-change-cursor-color.el
Last active September 18, 2026 19:30
Emacs: change cursor color during active repeat-mode commands
;; Update cursor color during repeat
(let ((rcol (face-foreground 'error)) ccol in-repeat)
(add-function
:after repeat-echo-function
(let ((sym 'my/update-cursor-color-on-repeat))
(defalias sym
(lambda (map)
(if map
(unless in-repeat ; new repeat sequence