Skip to content

Instantly share code, notes, and snippets.

@rogerhu
Created June 8, 2014 07:58
Show Gist options
  • Save rogerhu/d836cae460663507ff09 to your computer and use it in GitHub Desktop.
Save rogerhu/d836cae460663507ff09 to your computer and use it in GitHub Desktop.
Emacs page up page down
<?xml version="1.0"?>
<root>
<symbol_map type="KeyCode" name="PAGE_UP" value="0x74" />
<symbol_map type="KeyCode" name="PAGE_DOWN" value="0x79" />
<windownamedef>
<name>emacs_terminal</name>
<regex>emacs</regex>
</windownamedef>
<devicevendordef>
<vendorname>KINESIS</vendorname>
<vendorid>0x0518</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>ADVANTAGE</productname>
<productid>0x0001</productid>
</deviceproductdef>
<item>
<name>Kinesis remapping</name>
<identifier>Option_Tab_Remapping</identifier>
<device_only>DeviceVendor::KINESIS, DeviceProduct::ADVANTAGE</device_only>
<autogen>__KeyToKey__ KeyCode::TAB, ModifierFlag::OPTION_L, KeyCode::TAB, ModifierFlag::COMMAND_L</autogen>
</item>
<item>
<name>Emacs pageup/pagedown</name>
<identifier>emacs_pageup_pagedown</identifier>
<windowname_only>emacs_terminal</windowname_only>
<device_only>DeviceVendor::KINESIS, DeviceProduct::ADVANTAGE</device_only>
<autogen>__KeyToKey__ KeyCode::PAGE_UP, KeyCode::V, ModifierFlag::OPTION_L</autogen>
<autogen>__KeyToKey__ KeyCode::PAGE_DOWN, KeyCode::V, ModifierFlag::CONTROL_L</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment