This study presents an optimal electricity-heat system (EHS) planning framework to promote the accommodation of wind power while considering technical, economic and environmental criteria. To this end, the integrated demand response (IDR) is introduced as a flexibility resource to complement the inherent fluctuation of renewable energy sources and modeled by using price elasticity theory. Both the timing transferring and energy substitution potentials are considered in the proposed IDR program. Incorporating the effect of IDR into the EHS planning model, a two-stage stochastic programming model can be devised, in which the optimal EHS configuration design and associated operation control techniques are found simultaneously to minimize the system's total economic and carbon-emission costs over the planning horizon. The multi-scale uncertainties arising from both long-term demand growth and operation-level variability of renewables/load demands are captured collectively by using a scenario-based method. The suggested planning approach is illustrated on a real EHS test case and the results show that it is effective in practical applications.