Created
May 19, 2015 22:25
-
-
Save linktohack/f72a4278803ec23b1f81 to your computer and use it in GitHub Desktop.
Macify
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Map CapsLock to LCtrl | |
;; LAtl to RCtrl | |
;; LCtrl to RAlt | |
;; using SharpKeys first | |
>^Tab::AltTab | |
>^q::Send, !{F4} | |
;; Not Emacs, not Console | |
#IfWinNotActive ahk_class Emacs | |
#IfWinNotActive ahk_class ConsoleWindowClass | |
<^a::Send, {Home} | |
<^e::Send, {End} | |
<^b::Send, {Left} | |
<^f::Send, {Right} | |
<^n::Send, {Down} | |
<^p::Send, {Up} | |
<^d::Send, {Right}{Backspace} | |
<^h::Send, {Backspace} | |
<^k::Send, {Shift Down}{End}{Shift Up}{Del} | |
;; Emacs | |
#IfWinActive ahk_class Emacs | |
>^1::Send, ^x@s1 | |
>^2::Send, ^x@s2 | |
>^3::Send, ^x@s3 | |
>^4::Send, ^x@s4 | |
>^5::Send, ^x@s5 | |
>^a::Send, ^x@sa | |
>^z::Send, ^x@sz | |
>^x::Send, ^x@sx | |
>^c::Send, ^x@sc | |
>^v::Send, ^x@sv | |
>^f::Send, ^x@sf | |
>^g::Send, ^x@sg | |
>^p::Send, ^x@sp | |
>^t::Send, ^x@st | |
>^r::Send, ^x@sr | |
>^b::Send, ^x@sb | |
>^n::Send, ^x@sn | |
>^w::Send, ^x@sw | |
>^s::Send, ^x@ss | |
>^q::Send, ^x@sq | |
>^[::Send, ^x@s[ | |
>^]::Send, ^x@s] | |
>^m::Send, ^x@sm | |
>^l::Send, ^x@sl | |
;; Sublime Text | |
#IfWinActive ahk_class PX_WINDOW_CLASS | |
>^1::Send, !1 | |
>^2::Send, !2 | |
>^3::Send, !3 | |
>^4::Send, !4 | |
>^5::Send, !5 | |
>^6::Send, !6 | |
>^7::Send, !7 | |
>^8::Send, !8 | |
>^9::Send, !9 | |
#IfWinActive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment