From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: How to bind keys in emacs? Date: Sat, 24 Dec 2005 00:28:49 +0100 Organization: Informatimago Message-ID: <8764pfe6ku.fsf@thalassa.informatimago.com> References: <1135323536.675947.257490@o13g2000cwo.googlegroups.com> <87psnodxvh.fsf@thalassa.informatimago.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1135380559 14292 80.91.229.2 (23 Dec 2005 23:29:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Dec 2005 23:29:19 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 24 00:29:17 2005 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 1EpwLb-00014u-5h for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Dec 2005 00:29:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EpwMf-0000C2-H7 for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Dec 2005 18:30:21 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!easynet-quince!easynet.net!easynet-post2!not-for-mail Original-Newsgroups: gnu.emacs.help Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en X-Disabled: X-No-Archive: no User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:vqv6NSrjIyhQ1pDb4rUIUH6HXaU= Original-Lines: 43 Original-NNTP-Posting-Host: 62.93.174.79 Original-X-Trace: DXC=UfMEac 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:32196 Archived-At: "B. T. Raven" writes: > "Cameron Desautels" wrote in message > news:mailman.20269.1135361990.20277.help-gnu-emacs@gnu.org... >> On Fri, Dec 23, 2005 at 09:24:34AM +0100, Pascal Bourguignon wrote: >> > > I want to use F5 keys to serve as C-x C-s [save buffer]. >> > > and use F5 keys to serve as C-z [suspend]. >> > > >> > > What should i write in my ~/.emacs? >> > >> > If find it strange that you have non-deterministics wants, but here > you are: >> >> Hah. I think that was a typo. I think he wants [f5] as save-buffer >> and [f6] as suspend. Like so: >> >> (global-set-key [f5] 'save-buffer) >> (global-set-key [f6] 'suspend-emacs) >> -- >> Cameron Desautels >> >> >> Given infinite time, 100 monkeys could type out the complete works of >> Shakespeare. Win 98 source code? Eight monkeys, five minutes. >> >> > > Or 'iconify-or-deiconify-frame for w32, apparently, instead of > 'suspend-emacs. I don't know why this is. Do both work under Linux? Why do you think I wrote: (if window-system (iconify-or-deiconify-frame) (suspend-emacs)) ? -- __Pascal Bourguignon__ http://www.informatimago.com/ PLEASE NOTE: Some quantum physics theories suggest that when the consumer is not directly observing this product, it may cease to exist or will exist only in a vague and undetermined state.