Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Can AutohotKey emulate Emac's text selection?
#SingleInstance
#Installkeybdhook
#UseHook
SetKeyDelay 0
global selecting := False
SendWithShift(keys)
{
If (selecting)
{
Send +%keys%
}
Else
{
Send %keys%
}
}
^Space::
selecting := !selecting
Return
^n::
SendWithShift("{Down}")
Return
^p::
SendWithShift("{Up}")
Return
^f::
SendWithShift("{Right}")
Return
^b::
SendWithShift("{Left}")
Return
^a::
SendWithShift("{Home}")
Return
^e::
SendWithShift("{End}")
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment