I am working on a project that includes some configuration in .dir-locals.el
:
((c++-mode
. ((compile-command . "cd ../../\; ./build.sh"))))
This gets picked up just fine for me and sets the compile command. A teammate's emacs doesn't seem to recognize the file. .dir-locals.el
is present, but doesn't set the compile command (still defaults to make -k
).
Evaluating (dir-locals-find-file "Foo.h")
in *scratch*
returns .../project/src
on my system (which is the folder where .dir-locals.el
is located), but returns nil
for the teammate.
How do I troubleshoot this? Everything I can find in the documentation seems to assume that .dir-locals.el
will get picked up if it's present.
.dir-locals.el
isn't picked up... Also, are you both running the same Emacs version? – legoscia Mar 6 '15 at 18:51.dir-locals.el
is part of a svn repository that is checked out on to his machine, so he has local read access to the file – jake Mar 6 '15 at 19:15