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: Tim Visher
Subject: Re: Binding ``' in info-mode-only
Date: Sat, 27 Feb 2010 11:28:53 -0500

On Sat, Feb 27, 2010 at 10:50 AM, Drew Adams <drew.adams@oracle.com> wrote:
>> 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.
>

Nice! Thanks so much!

-- 

In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail




reply via email to

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