I am having trouble of marking one word at a time (ctrl-shift-arrow or meta-shift f/b) when connecting from one of my terminals. I would like to bind it also to meta-shift-arrow.

I couldn't find what are the commands to do it.

Any idea?

EDIT: I am looking for something like (pseudocode) (global-set-key (kbd "M-S-right") 'mark-word-right)

If it's relevant, I am using CUA mode.


1 Answer 1


You were just using the wrong key description text as the argument to kbd. (You can see how to write a key sequence by using C-h k and using the key sequence.)

(global-set-key (kbd "M-S-<right>") 'mark-word-right)

(Of course, mark-word-right needs to be a defined command.)

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.