xremap/examples/emacs_like.rb
2016-11-30 05:56:26 +09:00

17 lines
425 B
Ruby

window class_not: 'urxvt' do
# emacs-like bindings
remap 'C-b', to: 'Left'
remap 'C-f', to: 'Right'
remap 'C-p', to: 'Up'
remap 'C-n', to: 'Down'
remap 'C-a', to: 'Home'
remap 'C-e', to: 'End'
remap 'C-k', to: ['Shift-End', 'Ctrl-x']
# actually these are vim insert mode bindings, but compatible with shell
remap 'C-u', to: ['Shift-Home', 'Ctrl-x']
remap 'C-w', to: ['Ctrl-Shift-Left', 'Ctrl-x']
end