help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding M-n in info mode.


From: Dani Moncayo
Subject: Binding M-n in info mode.
Date: Fri, 2 Sep 2011 11:14:11 +0200

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 via email to

[Prev in Thread] Current Thread [Next in Thread]