Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Custom key bindings and shortcuts using AutoHotKey.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#IfWinNotActive ahk_class Emacs
^k::Send {Up}
^j::Send {Down}
^h::Send {Left}
^l::Send {Right}
^[::Send {Escape}
^]::Send !{d}
#w::Send ^{f4}
+^[::Send +{Escape}
#q::HardCloseWindow()
#IfWinNotActive
HardCloseWindow() {
PostMessage, 0x112, 0xF060,,, A
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment