Doping graphitic materials is desirable to enhance their performance for energy conversion and storage applications, but achieving high dopant concentrations remains a challenge. Researchers now demonstrate synthesis of such materials with very high doping levels and facile tunability.