help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Directory Local Variables: Path to .dir-locals.el


From: Rüdiger Sonderfeld
Subject: Re: Directory Local Variables: Path to .dir-locals.el
Date: Sun, 13 Dec 2009 17:00:08 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Hello,

Lennart Borgman <lennart.borgman <at> gmail.com> writes:
> locate-dominating-file?

Thank you!

My .dir-locals.el now looks like that

((c++-mode . ((compile-command . 
  (concat "cd " (file-name-directory (locate-dominating-file buffer-file-name
                                                             ".dir-locals.el"))
          " && make")))))

a bit complicated but it works :-).






reply via email to

[Prev in Thread] Current Thread [Next in Thread]