1 May 2004 01:47
Re: Per-directory customizations?
Kevin Rodgers <ihs_4664 <at> yahoo.com>
2004-04-30 23:47:48 GMT
2004-04-30 23:47:48 GMT
Roy Smith wrote: > In article <4092A276.8060505 <at> yahoo.com>, > Kevin Rodgers <ihs_4664 <at> yahoo.com> wrote: >>Why not set compile-command in the mode hook, as suggested in it's doc >>string: >> >>(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
RSS Feed