From: Juanma <juanma_bellon@yahoo.es>
To: help-gnu-emacs@gnu.org
Subject: Re: Key binding in local keymap problem
Date: Tue, 9 Sep 2008 23:02:44 +0200 [thread overview]
Message-ID: <200809092302.44216.juanma_bellon@yahoo.es> (raw)
In-Reply-To: <000701c912bc$f033ad80$0200a8c0@us.oracle.com>
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
next prev parent reply other threads:[~2008-09-09 21:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-09 20:18 Key binding in local keymap problem etay.meiri
2008-09-09 20:45 ` Drew Adams
2008-09-09 21:02 ` Juanma [this message]
2008-09-09 21:46 ` Drew Adams
2008-09-11 8:41 ` Nikolaj Schumacher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200809092302.44216.juanma_bellon@yahoo.es \
--to=juanma_bellon@yahoo.es \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.