This is indeed part of Exxon's publicly-stated strategy; they recognize that the demand for oil will peak once renewables, distribution, and storage technology are cheaper than the cost of extraction. There are already several solar power plants that were built because the unit economics made sense in those rare, outlier situations. This will become more widespread.