Skip to content

Instantly share code, notes, and snippets.

@sosmii
Last active August 6, 2020 12:27
Show Gist options
  • Save sosmii/027ce60e504ebb04fe4cefc46025a464 to your computer and use it in GitHub Desktop.
Save sosmii/027ce60e504ebb04fe4cefc46025a464 to your computer and use it in GitHub Desktop.
imitates emacs keybind in windows
!Left::send {Home}
!+Left::send +{Home}
!Right::send {End}
!+Right::send +{End}
!Up::send {PgUp}
!+Up::send +{PgUp}
!Down::send {PgDn}
!+Down::send +{PgDn}
!s::send ^s
!a::send ^a
!z::send ^z
!x::send ^x
!c::send ^c
!v::send ^v
!w::send ^{F4}
!q::send !{F4}
!Enter::send ^{Enter}
F24 & d::send {Del}
F24 & k::send +{End}{Del}
F24 & a::
If GetKeyState("Shift", "P")
send +{Home}
Else
send {Home}
Return
F24 & e::
If GetKeyState("Shift", "P")
send +{End}
Else
send {End}
Return
#IfWinActive ahk_exe chrome.exe
{
!+[::send ^{PgUp}
!+]::send ^{PgDn}
!#Left::send ^{PgUp}
!#Right::send ^{PgDn}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment