Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 973
Setjmp Avatar asked Mar 24 '09 02:03

Setjmp


2 Answers

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.

like image 107
Norman Ramsey Avatar answered Oct 05 '22 10:10

Norman Ramsey


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.

like image 29
wmat Avatar answered Oct 05 '22 11:10

wmat