Spatiospectral control of spontaneous emission