unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: educkworth@loyola.edu
To: help-gnu-emacs@gnu.org
Subject: Re: global-set-key in text-mode
Date: Wed, 20 Feb 2008 11:01:35 -0800 (PST)	[thread overview]
Message-ID: <db68f285-6c16-491c-b63e-f3c14cc227d9@s13g2000prd.googlegroups.com> (raw)
In-Reply-To: 87ve4j4h6k.fsf@W0053328.mgh.harvard.edu

>
> (add-hook 'text-mode-hook
>           '(lambda ()
>                    (define-key text-mode-map "\M-s" 'save-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




  reply	other threads:[~2008-02-20 19:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-20 16:53 global-set-key in text-mode educkworth
2008-02-20 18:24 ` Joel J. Adamson
2008-02-20 19:01   ` educkworth [this message]
2008-02-20 19:04     ` educkworth
2008-02-24  6:12       ` Dave Benjamin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=db68f285-6c16-491c-b63e-f3c14cc227d9@s13g2000prd.googlegroups.com \
    --to=educkworth@loyola.edu \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).