ERRgamma directs and maintains the transition to oxidative metabolism in the postnatal heart.