From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: How automatically/immediately run command in ansi-term *with* *arguments* ? Date: Mon, 09 Feb 2015 10:50:48 -0500 Organization: A noiseless patient Spider Message-ID: References: <18d0a858-7d2b-42de-bc61-8e16ff376569@googlegroups.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1423497322 24891 80.91.229.3 (9 Feb 2015 15:55:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Feb 2015 15:55:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 09 16:55:21 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YKqgA-0005af-9P for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Feb 2015 16:55:18 +0100 Original-Received: from localhost ([::1]:33561 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKqg9-0006Gl-DO for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Feb 2015 10:55:17 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!barmar.motzarella.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Injection-Info: barmar.motzarella.org; posting-host="2be9e9f5dd9af768b8861af71b85fc28"; logging-data="18807"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/+7xBsO3OinD8SX1QKXWeB" User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Cancel-Lock: sha1:uwumvntwISjMwIqspch6SYJqrDY= Original-Xref: usenet.stanford.edu gnu.emacs.help:210320 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102596 Archived-At: In article <18d0a858-7d2b-42de-bc61-8e16ff376569@googlegroups.com>, Chris Seberino 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, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***