I used to switch keyboard layout pressing ❖ win+spacebar on Windows 8, and ⌘+spacebar on OS X.
However, on Linux I have ❖ win key dedicated to XMonad as modificator key. So, to switch between layouts I have to use alt+⇧ shift.
This was not a problem until I've installed Emacs. Now I'm able to use all meta+shift key combinations, because I have alt as meta (⎋ escape could help, but it's very unhandy).
I think the easiest workaround for this case is to configure ❖ win+space to layout switch combination. Though XMonad by default use this combination to switching layouts, I rarely cycle layouts in both direction, so I will happy to have ❖ win+space for switching keyboard layout, and ❖ win+shift+space to switch XMonad layout. If I could make such configuration I will be able to use alt key as meta in Emacs.
However, I don't know how to make XMonad to use ❖ win+space as keyboard switch combination, being more preciese I don't know is it even possible.
All you've got to do is unbind Win-Space
(using removeKeys
), and create bindings for xmonad-layout switching and keyboard-layout switching (using additionalKeys
or additionalKeysP
). Details and examples in the documentation. The keyboard-layout switching command can be launched by using spawn
from the Core library.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments