This paper describes a novel and simple method of spectrum stabilization effected by "over-all" gain control employing variable capacitance p-n junction diodes. The stabilizing peak is referenced directly from the analyzer store. Digital windows set on the stabilizing peak sense the magnitude of the spectrum shift and generate an analogue signal of appropriate polarity and amplitude. This is applied as a reverse bias to a variable capacitance diode causing the effective feedback capacitance of a charge sensitive amplifier to change. This holds the spectrum in a fixed position. The high gamma-ray resolution (0.1-0.2%fwhm at 6 MeV) obtainable with the new lithium-drifted germanium detectors call for an amplifier stability of 1 part in 10 000. At lower gamma-ray energies the amplifier noise contributes primarily to the line width, while at higher energies, where the amplifier noise contribution is negligible, gain drifts of the order of 0.1% to 0.01%, cause line broadening. The system reported here is capable of correcting, efficiently, these orders of drifts. Typical resolutions obtained with the stabilizer are 6.3 keV (fwhm) for 2.614 MeV gamma-rays from a Th(B+C+C'') source and 4.15 keV for 1.333 MeV Co 60 gamma-rays.