[Top][All Lists]

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

Re: Per-directory customizations?

From: Kevin Rodgers
Subject: Re: Per-directory customizations?
Date: Fri, 30 Apr 2004 17:47:48 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

Roy Smith wrote:
> In article <>,
>  Kevin Rodgers <> wrote:
>>Why not set compile-command in the mode hook, as suggested in it's doc
>>(add-hook 'java-mode-hook
>>          (lambda ()
>>            (when (string-match "\\`~/dev/foo/" default-directory)
>>              (set (make-local-variable 'compile-command)
>> "cd ~/dev/foo; ant"))))
> The problem there, is it only works for java files.  I've got all
> sorts of files in my project directory tree (html, css, jsp, etc,
> etc).  I want the compile command tied to the directory tree, not the
> file type.

The use find-file-hooks instead of jave-mode-hook.

Kevin Rodgers

reply via email to

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