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

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

[h-e-w] Re: MinGW shell under Emacs and then running Ant


From: Kai Grossjohann
Subject: [h-e-w] Re: MinGW shell under Emacs and then running Ant
Date: Thu, 16 Oct 2003 21:13:56 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (berkeley-unix)

Kai Grossjohann <address@hidden> writes:

> I found out that
>
>     cmd //c $(which ant.bat) -emacs compile
>
> does what I need, but it is somewhat cumbersome to type.

FWIW, in case somebody is interested, I'll share my solution.  I'm
sure it's suboptimal.  Better suggestions appreciated.

I wrote a shell function in ~/.profile, as follows:

bat () {
    cmd="$1"
    shift
    cmd //c $(which $cmd.bat) "$@"
}

Then I did (also in ~/.profile): alias ant="bat ant"

And now I can type "ant -emacs compile" into the MinGW shell.

Kai






reply via email to

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