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

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

RE: Binding ``' in info-mode-only


From: Drew Adams
Subject: RE: Binding ``' in info-mode-only
Date: Sat, 27 Feb 2010 07:50:54 -0800

> I'd like to bind the ``' key to `Info-scroll-down` in Info mode only
> I don't want to use (add-hook . '(global-set-key)) because
> that would set the key in all of my other buffers.
> How would I go about doing this?

(define-key Info-mode-map "`" 'Info-scroll-down)

No need to use any hook. This is the case for most modes: they have their own
map; you can define keys directly in their maps.





reply via email to

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