all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dani Moncayo <dmoncayo@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Binding M-n in info mode.
Date: Fri, 2 Sep 2011 11:14:11 +0200	[thread overview]
Message-ID: <CAH8Pv0hjOZgUuUa0LOnycErd1Rd=frMv2FxwEVq+26PJd+vShg@mail.gmail.com> (raw)

Hi folks,

I want to bind M-p/M-n globally to
backward-paragraph/forward-paragraph, so that I wrote this in my
.emacs:

  (define-key global-map "\M-p" 'backward-paragraph)
  (define-key global-map "\M-n" 'forward-paragraph)

It worked right, but then I realized that info mode binds M-n to
clone-buffer.  In this mode I also want to bind M-n to
forward-paragraph, so that I added this:

  (define-key Info-mode-map "\M-n" 'forward-paragraph)

The problem is that this last remapping fails when starting my Emacs
because, at that time, the variable Info-mode-map doesn't not exits.

What is the right way of solving this?

TIA

-- 
Dani Moncayo



             reply	other threads:[~2011-09-02  9:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-02  9:14 Dani Moncayo [this message]
2011-09-02  9:25 ` Binding M-n in info mode Eli Zaretskii
2011-09-02  9:31   ` Dani Moncayo
2011-09-02 10:14 ` Deniz Dogan
2011-09-02 11:14 ` Thien-Thi Nguyen
2011-09-02 12:17   ` Dani Moncayo
2011-09-02 16:07     ` Vijay Lakshminarayanan
2011-09-02 16:17       ` Deniz Dogan
2011-09-02 20:02         ` Dani Moncayo
2011-09-02 19:59       ` Dani Moncayo

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

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

  git send-email \
    --in-reply-to='CAH8Pv0hjOZgUuUa0LOnycErd1Rd=frMv2FxwEVq+26PJd+vShg@mail.gmail.com' \
    --to=dmoncayo@gmail.com \
    --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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.