Add .dir-locals.el for Emacs (replaces PR#164)