From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Burton Samograd Newsgroups: gmane.emacs.help Subject: Re: How can I bind a shell command to a key? Date: Mon, 22 May 2006 01:02:04 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <87sln2a6fn.fsf@gmail.com> References: <1148266311.755841.225520@g10g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1148283688 25248 80.91.229.2 (22 May 2006 07:41:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 May 2006 07:41:28 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 22 09:41:26 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fi52W-00061Y-AH for geh-help-gnu-emacs@m.gmane.org; Mon, 22 May 2006 09:41:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fi52V-00049A-NO for geh-help-gnu-emacs@m.gmane.org; Mon, 22 May 2006 03:41:19 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!multikabel.net!feed20.multikabel.net!tudelft.nl!txtfeed2.tudelft.nl!feed.xsnews.nl!feeder.xsnews.nl!sn-ams-06!sn-xt-ams-08!sn-post-ams-02!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:3WAp1QCUqIU8Xn9Jwk7CgX66Z5M= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 19 Original-Xref: shelby.stanford.edu gnu.emacs.help:139572 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:35196 Archived-At: "LUK" <700MHz@gmail.com> writes: > Hi, I want to bind a shell command "find . -type f -name "*" -print | > etags -" > to"F1", > what should I write in ".emacs"? (global-set-key [f1] '(lambda () (interactive) (shell-command "find . -type f -name "*" -print | etags -"))) > Thanks! np. -- burton samograd kruhft .at. gmail kruhft.blogspot.com www.myspace.com/kruhft metashell.blogspot.com