help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Key binding in local keymap problem


From: Nikolaj Schumacher
Subject: Re: Key binding in local keymap problem
Date: Thu, 11 Sep 2008 10:41:41 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2.50 (darwin)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]