From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: educkworth@loyola.edu Newsgroups: gmane.emacs.help Subject: Re: global-set-key in text-mode Date: Wed, 20 Feb 2008 11:01:35 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <87ve4j4h6k.fsf@W0053328.mgh.harvard.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1203550909 21371 80.91.229.12 (20 Feb 2008 23:41:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Feb 2008 23:41:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 21 00:42:14 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JRyZi-00048K-OH for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Feb 2008 00:42:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRyZC-0006JD-MV for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Feb 2008 18:41:34 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!s13g2000prd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-NNTP-Posting-Host: 144.126.190.165 Original-X-Trace: posting.google.com 1203534095 2250 127.0.0.1 (20 Feb 2008 19:01:35 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 20 Feb 2008 19:01:35 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s13g2000prd.googlegroups.com; posting-host=144.126.190.165; posting-account=uSF7xAkAAAD623u6tCvRv3iZH_YzzxSk User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/523.12.2 (KHTML, like Gecko) Version/3.0.4 Safari/523.12.2, gzip(gfe), gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:156342 X-Mailman-Approved-At: Wed, 20 Feb 2008 18:35:06 -0500 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:51717 Archived-At: > > (add-hook 'text-mode-hook > =A0 =A0 =A0 =A0 =A0 '(lambda () > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(define-key text-mode-map "\M-s" 's= ave-buffer))) > Thanks, but this doesn't work for me. M-s, in text-mode, is still bound to center line. I'll browse the manuals a little more about keymaps, define-key, etc. Ethan