1

I do not like the standard keybinding to redo so I would like to customise it. How can I remap redo to C-S-/? I am not able to find any solution in internet.

4
  • Why not ask emacs how to do it ? Press C-h-f RET global-set-key RET Dec 15, 2016 at 10:16
  • See the links for this google search for "emacs map keys" for instructions on how to bind keys (the manual, FAQs, tutorials, etc.).
    – Dan
    Dec 15, 2016 at 14:19
  • @ChakravarthyRaghunandan Emacs doesn't have a redo as a separate command, so that's not quite enough...
    – npostavs
    Dec 15, 2016 at 22:33
  • @npostavs Oh yes, after using undo-tree for so long, I forgot about the default behaviour of emacs. Dec 16, 2016 at 4:17

2 Answers 2

2

If you haven't already try undo-tree.el. It gives Emacs a conventional undo, otherwise you need to undo the undos in order to redo--there is no redo function... With it you can add:

(global-set-key (kbd "C-s-/") 'undo-tree-redo)

to your emacs init file, or where ever you keep custom keybindings, and walk back and forward through any change.

2
  • By the way, undo-tree-redo is bound to to C-/ by default, which is already equivalent to C-S-? (at least on American keyboard layouts).
    – npostavs
    Dec 16, 2016 at 17:18
  • That's why I assume the question is more about how to get a conventional undo and redo...
    – junkgui
    Dec 16, 2016 at 17:19
1

By default, Emacs doesn't support redo with a single key-stroke.

You can do one of the following.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.