I watched the episodes Treehouse Of Horror V and VI. It contains the bits "The Shinning":
and "Time and Punishment", where Homer tries to fix a toaster and alters time, and "Nightmare Cafeteria":
There's also "Attack Of The 50 Foot Eyesores", "Nightmare On Evergreen Terrace", and the less-successful "Homer 3". Pretty much solid classics. The dvd also contains episodes VII and XII, but I didn't get around to those. You should watch them.