tags:

views:

87

answers:

1

Is there any chance to change in Emacs 23.1.1 a keybinding for (toggle-input-method) to <Meta+Shift> or <Alt+Shift> (because I use <Alt> as <Meta>)?

This, obviously, doesn't work:

(global-set-key [(meta shift)] 'toggle-input-method)

Thanks in advance.

+1  A: 

This is pretty much a duplicate question... see elisp how to check if shift key is pressed. Alt and Shift are both key modifiers, and because of that you cannot bind any commands to them directly.

Trey Jackson