All of our small closets have door-activated switches. This is convenient in that you (a) never forget to turn the light out, and (b) don't have to search for the lightswitch buried in the closet. Here's one of those switches - the white thing in the middle of the picture. It has yet to be connected - you can see the wire looping into the closet.