I use an xmodmap script (which in turn uses xcape) which remaps Caps Lock to be a modifier (when it is pressed on conjunction with other keys) and escape (when it is pressed and released on its own).
Before installing spacemacs, this worked fine in emacs (at least in terminal mode). After installing Spacemacs, it doesn't work in terminal mode. That is, pressing CapsLock does nothing (so that I can't, for example, go from insert mode to normal mode).
Here is my actual xmodmap/xcape config:
setxkbmap -layout us xmodmap -e "keycode 66 = Hyper_L" xmodmap -e "remove mod4 = Hyper_L" xmodmap -e "remove lock = Hyper_L" xmodmap -e "add mod3 = Hyper_L" xmodmap -e "keycode any = Caps_Lock" xcape -e "Hyper_L=Escape"
Question: How can I get this intended functionality working with spacemacs?