To record ‘the perfect’ electric guitar sound you need to know what you want to hear, what you can actually hear and how to bridge the chasm in the middle.
A lot of the tone and character that goes into a great guitar sound comes straight from the amp, so get into the studio and play around with the amp to see what different tones it can give you. Work with your guitarist, and keep adjusting the amp until you find a sound you like and get as close to ‘perfect’ as possible before you think about rigging mics. Beyond the usual high, mid and low tone controls, the amp you use may have reverb control – which is probably a spring reverb. Although spring reverb might sound low-tech it’s an effect instantly associated with lead guitar sounds thanks to the likes of Stevie Ray Vaughan and Kurt Cobain, so before you throw a reverb plugin over everything, see what you can get from the amp as it might just work! Getting the sound right at the amp make choosing and positioning a microphone easier, as you will already have an idea of how you want it to sound, and will save you time and effort in the mix.