We have built an x-ray spectrometer in a von Hamos configuration based on a highly annealed pyrolytic graphite crystal. The spectrometer is designed to measure x-ray emission in the range of 2–5 keV. A spectral resolution E/ΔE of 4000 was achieved by recording the elastic peak of photons issued from the GALAXIES beamline at the SOLEIL synchrotron radiation facility.