Text this: Optimal Configuration of Spatial Planning for Energy-Efficient Buildings