Subject: bug#15234: 24.3.50; Make C-x u repeatable

From: Juri Linkov <[email-masked]>
Date: Sun, 01 Sep 2013 19:27:42 +0300

>> Make C-x u repeatable.
>
> FWIW, this is what I use:
>
> (defun undo-repeat (arg)

You can make any command repeatable more easily with:

(advice-add 'undo :after
	    (lambda (delta)
	      (set-temporary-overlay-map
	       (let ((map (make-sparse-keymap)))
		 (define-key map (vector last-command-event) this-command)
		 map))))