Re: per-directory compile command ?
Markus Heiser <[email protected]> Fri, 09 Dec 2005 16:09:27 +0100
| Newsgroups | gmane.emacs.xemacs.general |
|---|---|
| Organization | Contact GmbH |
| Message-ID | <[email protected]> |
Markus Heiser schrieb:
> try this ...
>
> (defun buildkit-ide-compile ()
> (interactive)
> (compile
> (if (or compilation-read-command current-prefix-arg)
> (read-shell-command "Compile command: "
> (cond
> ((string= major-mode "java-mode")
> "ant -myopt")
> ;;((string= major-mode "xyz-mode")
> ;; "xyz -myopt")
> (t
> "make -k"
> )))
sorry there is a copy&paste error, instead of ...
> (list compile-command))))
type ...
compile-command)))
-- Markus Heiser --