[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Key binding in local keymap problem
From: |
Juanma |
Subject: |
Re: Key binding in local keymap problem |
Date: |
Tue, 9 Sep 2008 23:02:44 +0200 |
User-agent: |
KMail/1.9.6 (enterprise 0.20070907.709405) |
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