RE: Key binding in local keymap problem
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.help Profile…
 Up
RE: Key binding in local keymap problem         


Author: Drew Adams
Date: Sep 9, 2008 14:46

>>> I have the following line in my .emacs:
>>> (define-key gud-mode-map [f9] 'gud-break)
>>> and I get an error that the value of gud-mode-map is void.
>>
>> You need to load library `gud' before you do that.
>> It defines variable `gud-mode-map' and gives it a value.
>
> So, if you don't want to load `gud' on Emacs start-up, use `add-hook':
> (add-hook 'gud-mode-hook
> (lambda () (define-key gud-mode-map [f9] 'gud-break)))

Yes, I should have added that. Thanks.
no comments