configure libs with session option

didn't find a better way since I can't access editor options from the
mode