How to reset the keyboard set by xmodmap on Linux? You can reset your keyboard settings by: setxkbmap or setxkbmap -option depending on the way the keyboard was set by xmodmap.
How to swap alt and ctrl on Linux for Emacs? It will be more easier to press the ctrl keys which is a very important key for Emacs. You can make of xmodmap. Save this as a file modmap: clear control clear mod1 keycode 64 = Control_L NoSymbol Control_L keycode 37 = Alt_L Meta_L Alt_L
How to remap the Caps Lock key to Control for Emacs? My left little finger is just so tired… You can either change it in gnome-tweak-tool on Gnome 3: Or: You can make use of 2 tools: xev to find out the key code for Caps Lock and xmodmap to modify key maps. First, run