From: "Drew Adams" <drew.adams@oracle.com>
To: "'Juanma'" <juanma_bellon@yahoo.es>, <help-gnu-emacs@gnu.org>
Subject: RE: Key binding in local keymap problem
Date: Tue, 9 Sep 2008 14:46:43 -0700 [thread overview]
Message-ID: <001e01c912c5$8cf58e10$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <200809092302.44216.juanma_bellon@yahoo.es>
> > > 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.
next prev parent reply other threads:[~2008-09-09 21:46 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
2008-09-09 21:46 ` Drew Adams [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='001e01c912c5$8cf58e10$0200a8c0@us.oracle.com' \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=juanma_bellon@yahoo.es \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).