[Top][All Lists]

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

Re: Per-directory customizations?

From: Stefan Monnier
Subject: Re: Per-directory customizations?
Date: Fri, 30 Apr 2004 21:14:09 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> Is there any way to do customizations on a per-directory basis?
> For example, I've got java project which lives in ~/dev/foo.  Anytime I
> run M-X compile anywhere inside the ~/dev/foo hierarchy, I want the
> command run to be "cd ~/dev/foo; ant".  I don't want to just set
> compile-command in my .emacs file, because the right command varies
> depending on which project (i.e. directory subtree) I'm in.

In sml-mode.el, I made the sml-compile command walk up the directory tree
until it finds the Makefile-equivalent.  Maybe M-x compile RET should do
the same: walk up the tree until it finds a Makefile and then use
"cd ../..; make".


reply via email to

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