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

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

Re: how to use bash alias in emacs compile


From: Barry Margolin
Subject: Re: how to use bash alias in emacs compile
Date: Wed, 02 May 2012 18:55:34 -0400
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

In article 
<a0a22d31-830a-4488-96c8-2846e47fcff4@v1g2000yqm.googlegroups.com>,
 "Daniel (Youngwhan)" <breadncup@gmail.com> wrote:

> Hi,
> 
> I have alias like this:
> 
> alias dm='cd ~/XYZ && ./mycompile.sh'
> 
> I typed M-x compile, and tried to run by just typing "dm", but it
> doesn't recognize.
> 
> I searched and some suggest BASH_ENV, so I tried, but not working.
> 
> I'm using GNU emacs 23.4.1 running on Linux (Ubuntu 2.6.38 kernel),
> and GNU Bash version is 4.1.5.
> 
> When I type "alias" in M-x compile, it shows dm in right way, but it
> looks the "compile" in emacs does not recognize bash alias.
> 
> Is there anyone who resolve this problem? Or it is impossible to use
> bash alias in emacs compile.

Have you tried changing your alias into a script that can be found via 
your $PATH?

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


reply via email to

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