all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Binding M-n in info mode.
@ 2011-09-02  9:14 Dani Moncayo
  2011-09-02  9:25 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Dani Moncayo @ 2011-09-02  9:14 UTC (permalink / raw)
  To: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-09-02 20:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-02  9:14 Binding M-n in info mode Dani Moncayo
2011-09-02  9:25 ` 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

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.