[Top][All Lists]

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

Re: Repeat lambda

From: Juri Linkov
Subject: Re: Repeat lambda
Date: Wed, 14 Apr 2021 20:56:36 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

>   > Maybe 'C-x u u' could start such key sequence with the command 'undo',
>   > then 'r' could switch to a different keymap
>   > where 'r' is bound to 'undo-redo' and 'u' to 'undo-only'.
>   > Perhaps such heuristics makes sense that once the user typed 'r',
>   > the next 'u' should do 'undo-only'?
> C-x u is the recommended key sequence for novices to undo.
> Please do not make it more complex in any way.
> It would trip them up!

Then additional keybindings could be left up to personal customization,
so e.g. after activating undo repeating mode with 'C-x u', 'C-z' and 'C-y'
could be used to browse the undo history with 'C-x u C-z C-z ... C-y C-y ...'
after such customization:

  (define-key undo-repeat-map (kbd "C-z") 'undo-only)
  (define-key undo-repeat-map (kbd "C-y") 'undo-redo)

reply via email to

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