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.

  • Why not ask emacs how to do it ? Press C-h-f RET global-set-key RET – Chakravarthy Raghunandan Dec 15 '16 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 '16 at 14:19
  • @ChakravarthyRaghunandan Emacs doesn't have a redo as a separate command, so that's not quite enough... – npostavs Dec 15 '16 at 22:33
  • @npostavs Oh yes, after using undo-tree for so long, I forgot about the default behaviour of emacs. – Chakravarthy Raghunandan Dec 16 '16 at 4:17
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.

  • 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 '16 at 17:18
  • That's why I assume the question is more about how to get a conventional undo and redo... – junkgui Dec 16 '16 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, privacy policy and cookie policy

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