There was some discussion some time ago on using CFL's. As I recall the method most used was to keep the light on all the time, and control the exposure with the lens cap or a shutter.
I have a couple of LED bulbs that look like they could work in an enlarger, they have a pretty dense white plastic dome over the LEDs. Haven't tried it for that, however, as my enlarger doesn't have a screw base lamp.