Add .dir-locals.el to set up Emacs c-mode appropriately (thanks, monkeyiq)

This supercedes the (now removed) advice on use with Emacs; instead it's automatic!