bind x "bind a \"+left\"; bind d \"+right\""
""
because it contains ;
, otherwise that will end the command. Then you have to escape the inner "
with \"
so that the parser can tell the difference from the outer "
.bind x "bind a +left; bind d +right"