unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Nikolaj Schumacher <me@nschum.de>
To: Juanma <juanma_bellon@yahoo.es>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Key binding in local keymap problem
Date: Thu, 11 Sep 2008 10:41:41 +0200	[thread overview]
Message-ID: <m2wshjnkfu.fsf@nschum.de> (raw)
In-Reply-To: <200809092302.44216.juanma_bellon@yahoo.es> (Juanma's message of "Tue\, 9 Sep 2008 23\:02\:44 +0200")

Juanma <juanma_bellon@yahoo.es> wrote:

> On Tuesday 09 September 2008, Drew Adams wrote:
> (add-hook 'gud-mode-hook
>           (lambda () (define-key gud-mode-map [f9] 'gud-break)))

I think it's cleaner to do the customizations like this:

(eval-after-load 'gud '(define-key gud-mode-map [f9] 'gud-break))

So they aren't executed every time the mode is started.

regards,
Nikolaj Schumacher




      parent reply	other threads:[~2008-09-11  8:41 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
2008-09-11  8:41     ` Nikolaj Schumacher [this message]

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=m2wshjnkfu.fsf@nschum.de \
    --to=me@nschum.de \
    --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).