dir-locals for emacs compilations.

Assumes that the build directory is in (root)/build/.