Only slightly related, but what increased my code typing speed the most is this (AutoHotKey 2):
; CapsLock + J/K -> ( )
CapsLock & j::SendText "("
CapsLock & k::SendText ")"
; CapsLock + U/I -> [ ]
CapsLock & u::SendText "["
CapsLock & i::SendText "]"
; CapsLock + L/: -> { }
CapsLock & l::SendText "{"
; SC027 = physical ;/: key on a US keyboard
CapsLock & SC027::SendText "}"
; CapsLock + O/P/M/E -> _ + - =
CapsLock & o::SendText "_"
CapsLock & p::SendText "+"
CapsLock & m::SendText "-"
CapsLock & e::SendText "="
I've tried this sort of thing but then your muscle memory works against you when you have to use a "normal" keyboard.
Even remapping Cap Lock to Control, which I do, trips me up for a few minutes when I need to work on any other computer that has not been set up that way.