Author: JuanmaJuanma Date: Sep 9, 2008 14:02
On Tuesday 09 September 2008, Drew Adams wrote:
>> 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)))
--
Juanma
"Having a smoking section in a restaurant is like
having a peeing section in a swimming pool."
-- Edward Burr
|