From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ye Wenbin" Newsgroups: gmane.emacs.help Subject: Re: How can I bind a shell command to a key? Date: Mon, 22 May 2006 15:04:14 +0800 Organization: Personal Message-ID: References: <1148266311.755841.225520@g10g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; delsp=yes; charset=gbk Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1148281504 18960 80.91.229.2 (22 May 2006 07:05:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 May 2006 07:05:04 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 22 09:05:00 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 1Fi4TJ-0000YT-Ho for geh-help-gnu-emacs@m.gmane.org; Mon, 22 May 2006 09:04:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fi4TJ-0000ce-4G for geh-help-gnu-emacs@m.gmane.org; Mon, 22 May 2006 03:04:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fi4T7-0000bf-Fi for help-gnu-emacs@gnu.org; Mon, 22 May 2006 03:04:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fi4T1-0000bC-7f for help-gnu-emacs@gnu.org; Mon, 22 May 2006 03:04:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fi4T1-0000b9-3C for help-gnu-emacs@gnu.org; Mon, 22 May 2006 03:04:39 -0400 Original-Received: from [202.108.5.86] (helo=m5-86.163.com) by monty-python.gnu.org with smtp (Exim 4.52) id 1Fi4Ww-0008BT-2h for help-gnu-emacs@gnu.org; Mon, 22 May 2006 03:08:43 -0400 Original-Received: from ye (unknown [218.17.227.213]) by smtp5 (Coremail) with SMTP id wKjRECQALQZOYnFEgX3VBQ==.59783S2; Mon, 22 May 2006 15:03:51 +0800 (CST) Original-To: LUK <700MHz@gmail.com> In-Reply-To: <1148266311.755841.225520@g10g2000cwb.googlegroups.com> User-Agent: Opera M2/7.50 (Win32, build 3778) 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:35193 Archived-At: I think abbrev is better way to do this: (define-abbrev-table 'shell-mode-abbrev-table '( ("findx" "find . -type f -name \"*\" -print |etags -" nil 0) )) On 21 May 2006 19:51:51 -0700, LUK <700MHz@gmail.com> wrote: > > Hi, I want to bind a shell command "find . -type f -name "*" -print | > etags -" > to"F1", > what should I write in ".emacs"? > Thanks! > > _______________________________________________ > help-gnu-emacs mailing list > help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/