From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Cameron Desautels Newsgroups: gmane.emacs.help Subject: Re: How to bind keys in emacs? Date: Fri, 23 Dec 2005 12:18:38 -0600 Message-ID: <20051223181838.GA9520@setzer.hsd1.tx.comcast.net> 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 1135361950 28312 80.91.229.2 (23 Dec 2005 18:19:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Dec 2005 18:19:10 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 23 19:19:08 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 1EprVQ-0007sB-3C for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Dec 2005 19:19:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EprWT-000234-TY for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Dec 2005 13:20:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EprW9-00022y-0Q for help-gnu-emacs@gnu.org; Fri, 23 Dec 2005 13:19:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EprW7-000228-1Y for help-gnu-emacs@gnu.org; Fri, 23 Dec 2005 13:19:48 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EprW6-00021w-SP for help-gnu-emacs@gnu.org; Fri, 23 Dec 2005 13:19:46 -0500 Original-Received: from [216.148.227.89] (helo=rwcrmhc12.comcast.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EprVR-0003Yg-Kn for help-gnu-emacs@gnu.org; Fri, 23 Dec 2005 13:19:05 -0500 Original-Received: from apt2324.com ([24.1.141.139]) by comcast.net (rwcrmhc14) with SMTP id <20051223181838014008jq58e>; Fri, 23 Dec 2005 18:18:38 +0000 Original-Received: (qmail 15566 invoked by uid 1000); 23 Dec 2005 18:18:38 -0000 Original-To: help-gnu-emacs@gnu.org Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <87psnodxvh.fsf@thalassa.informatimago.com> User-Agent: Mutt/1.5.10i 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:32192 Archived-At: 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.