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

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

Re: How automatically/immediately run command in ansi-term *with* *argum


From: Barry Margolin
Subject: Re: How automatically/immediately run command in ansi-term *with* *arguments* ?
Date: Mon, 09 Feb 2015 10:50:48 -0500
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

In article <address@hidden>,
 Chris Seberino <address@hidden> wrote:

> I'm trying to set some shortcuts for shell commands.  I want to use ansi-term 
> as it has colors and other niceties not found in shell if I use 
> shell-command....
> 
> This works...
> 
> (ansi-term 'some_command_here')
> 
> This does *NOT*...
> 
> (ansi-term 'some_command_here arg1 arg2')
> 
> How get arguments to work?  This would be quite a nice replacement for 
> shell-command if it could for people that like/need ansi-term.

The argument to ansi-term is a program, not a command. There doesn't 
seem to be a way to provide arguments to the program. Write a script 
that does what you want, and put that as the program argument.

-- 
Barry Margolin, address@hidden
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


reply via email to

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