For emacs and evil mod
~/.xmodmap
!replace capslock with right control key
remove Lock = Caps_Lock
remove Control = Control_R
keysym Caps_Lock = Control_R
add Lock = Caps_Lock
add Control = Control_R
!replace left control with escape, to exit out of insert mode fast
!keysym Control_L = Escape
keysym Control_L control = Escape Control_L
Reset xmodmap mappings
setxkbmap -option