A hedonistic North African intellectual undergoes a dramatic conversion and writes a confessional text that invents the Western spiritual autobiography.