1

This is not working for some reason:

(global-set-key (kbd "s-S-z") 'undo-tree-redo)

CMD - Shift - z

While this:

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

works.

How do I get "CMD - Shift - z" to be 'undo-tree-redo'

1

Try (global-set-key (kbd "s-Z") 'undo-tree-redo). (Z = SHIFT + z). This works for me on Linux with s- being the windows key, but should work with the command key on a Mac I think. This threw me off at first as well.

| improve this answer | |

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.