Trucks and busses would be better off with battery swaps at depo like electric forklifts do. More mileage more towing weight for trucks, just stack more batteries. Overweight? Use a diesel.
Trains is an easy one, over head lines.
Aircraft, I think short distance trips <1hr maybe otherwise biofuel. Likely we’ll see biofuels widely used by 2040. Electric motors on a 777, I’m not sure.