Skip to content

Instantly share code, notes, and snippets.

@foooomio
Last active June 26, 2019 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foooomio/16f4f41e80ea1d4a42e7 to your computer and use it in GitHub Desktop.
Save foooomio/16f4f41e80ea1d4a42e7 to your computer and use it in GitHub Desktop.
keyhac config
import pyauto
from keyhac import *
def configure(keymap):
def is_not_cygwin(window):
return window.getProcessName() != "mintty.exe"
keymap_emacs = keymap.defineWindowKeymap(check_func=is_not_cygwin)
keymap_emacs["LC-a"] = "Home"
keymap_emacs["LC-e"] = "End"
keymap_emacs["LC-p"] = "Up"
keymap_emacs["LC-n"] = "Down"
keymap_emacs["LC-f"] = "Right"
keymap_emacs["LC-b"] = "Left"
keymap_emacs["LC-h"] = "Back"
keymap_emacs["LC-d"] = "Delete"
keymap_emacs["LC-y"] = "RC-v"
keymap_emacs["LC-k"] = "S-End", "RC-x"
keymap_emacs["LC-t"] = "S-Right", "RC-x", "Left", "RC-v"
keymap_global = keymap.defineWindowKeymap()
keymap_global["BackSlash"] = "S-BackSlash"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment