The Scottish transport minister, Keith Brown MSP, said: "This funding looks to the future - a future where people can charge their carbon-neutral cars at home, drive them to their local station and jump on an electric train to their workplace.
"Workplaces will also have charging points for the days people need to take the car to work."
Environmental campaigners said reducing emissions from petrol and diesel vehicles will be vital if the Scottish government is to meet its climate change targets.
But they have also argued that there will have to be major improvements to public transport and increased investment in measures to encourage drivers to leave the car at home and walk or cycle instead.