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

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

Re: How can I bind a shell command to a key?


From: Burton Samograd
Subject: Re: How can I bind a shell command to a key?
Date: Mon, 22 May 2006 01:02:04 -0600
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

"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


reply via email to

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