Skip to content

Instantly share code, notes, and snippets.

@kenji-miyake
Created July 19, 2019 10:53
Show Gist options
  • Save kenji-miyake/f20a6b31f361967922d467f39e389c50 to your computer and use it in GitHub Desktop.
Save kenji-miyake/f20a6b31f361967922d467f39e389c50 to your computer and use it in GitHub Desktop.
AutoHotKey
; Common
#Persistent
#SingleInstance force
#MaxHotkeysPerInterval 100
; Emacs Keybind
#If NOT WinActive("ahk_class ConsoleWindowClass") AND NOT WinActive("ahk_class CASCADIA_HOSTING_WINDOW_CLASS")
RCtrl & a:: Send {Home}
RCtrl & e:: Send {End}
RCtrl & k:: Send +{End}^{x}
#If
; Excel
#If WinActive("ahk_class XLMAIN")
RCtrl & Enter:: Send {F2}{End}
LShift & Enter:: Send {F2}!{Enter}
#If
; PowerPoint
#If WinActive("ahk_class PPTFrameClass")
Tab:: Send !+{Right}
+Tab:: Send !+{Left}
#If
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment