A battery electrolyte that is solid at normal temperatures yet still conducts ions could make lithium batteries safer and longer lasting by replacing flammable liquids.