bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Drew Adams
Subject: bug#15234: 24.3.50; Make C-x u repeatable
Date: Sun, 1 Sep 2013 08:23:28 -0700 (PDT)

> Make C-x u repeatable. 

FWIW, this is what I use:

(defun undo-repeat (arg)
  "Same as `undo', but repeatable even on a prefix key.
E.g., if bound to `C-x u' then you can use `C-x u u u...' to repeat."
  (interactive "*P")
  (undo arg)
  (set-temporary-overlay-map (let ((map  (make-sparse-keymap)))
                               (define-key map "u" 'undo-repeat)
                               map)))

(global-set-key [remap undo] 'undo-repeat)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]