// // The emacs-keys layout is a modified "us" layout: // // * CapsLock becomes Left-Alt // * Left-Alt and Left-Ctrl are swapped // * Right-Alt and Right-Ctrl are swapped // // This could probably be pieced together from various // rules that ship with xkeyboard-config, but it's a // lot nicer to have everything available as a layout. // default partial alphanumeric_keys xkb_symbols "emacs-keys" { include "us(basic)" name[Group1] = "Emacs Keys"; // Make capslock a left-alt. replace key { [ Alt_L, Meta_L ] }; modifier_map Mod1 { }; // This is a copy of the ctrl(swap_lalt_lctl) rule // that ships with xkeyboard-config. replace key { [ Control_L, Control_L ] }; replace key { [ Alt_L, Meta_L ] }; modifier_map Mod1 { }; modifier_map Control { }; replace key { [ Control_L, Control_L ] }; replace key { [ Alt_L, Meta_L ] }; modifier_map Mod1 { }; modifier_map Control { }; // This is a copy of the ctrl(swap_ralt_rctl) rule // that ships with xkeyboard-config. replace key { [ Control_R, Control_R ] }; replace key { [ Alt_R, Meta_R ] }; modifier_map Mod1 { }; modifier_map Control { }; };