Mining requires huge amounts of energy - no question about it. However, not all of that energy must come from liquid fuels, For instance, underground mining can not really use liquid fuels - the problem of containing the exhaust fumes is prohibitive. A few years ago, mining in South Africa had to be shut down simply because the power plants could not deliver enough electricity to run the gigantic air conditioners located many miles underground.  

It is not very likely that large trucks will run on batteries in the future. However, they could run on pressurized air which could be generated via electricity (the pressurized air serving as a battery replacement). Trucks could also run on synthetic natural gas made from water and carbon dioxide using electricity.  Also, it is quite possible that trucks in the future could run on stationary electricity using a cable system like trolley buses. 

I think mining will continue in the future even if oil runs out completely. The sun radiates enough energy which means that we will never run out of electricity. Our problem is not so much running out of oil as much as running out of important metal ores (copper, zinc etc). The idea that we will be running out of copper ores within this century is really frightening. 

Here is a question I ask everybody on this forum to consider: If we ask 100 people (chosen at random) the question "What is bigger, the sun or the earth?", how many of these 100 people will answer "The Earth"? In my personal opinion, that number is at least 10 if not more.

The diameter of the sun is roughly 120 times as large as the diameter of the Earth.