Linux: Mapping Windows key to M-x for the purpose of emacs usage

1.1k views Asked by At

I am an emacs user (on linux laptop) looking to make better use of my keyboard settings. The windows key is unused on my keyboard... is there any way to map it to m-x? This might make many emacs commands faster.

Thanks,

SetJmp

2

There are 2 answers

0
Norman Ramsey On BEST ANSWER

Use xmodmap to make it the Menu key, as in

keycode 115 = Menu

You will have to use xev to find out if the Windows key is key 115 on your keyboard.

0
wmat On

Just to provide a little more info, here's a link to a quick series of steps to remap the CapsLock Key in both X and Virtual Consoles:

The steps can be identically followed for Windows key or whatever else you may wish to remap.