From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: Key binding in local keymap problem Date: Thu, 11 Sep 2008 10:41:41 +0200 Message-ID: References: <0811e68c-504a-4a57-971c-7681d433528b@x35g2000hsb.googlegroups.com> <000701c912bc$f033ad80$0200a8c0@us.oracle.com> <200809092302.44216.juanma_bellon@yahoo.es> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1221122544 24685 80.91.229.12 (11 Sep 2008 08:42:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2008 08:42:24 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Juanma Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 11 10:43:20 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kdhlk-0006Rq-3T for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 10:43:16 +0200 Original-Received: from localhost ([127.0.0.1]:41336 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kdhkj-0001OO-TI for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 04:42:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdhkK-0001NB-F7 for help-gnu-emacs@gnu.org; Thu, 11 Sep 2008 04:41:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdhkI-0001Mg-49 for help-gnu-emacs@gnu.org; Thu, 11 Sep 2008 04:41:47 -0400 Original-Received: from [199.232.76.173] (port=37391 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdhkH-0001MZ-Sa for help-gnu-emacs@gnu.org; Thu, 11 Sep 2008 04:41:45 -0400 Original-Received: from dd18200.kasserver.com ([85.13.138.168]:48582) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KdhkH-0000J8-Hu for help-gnu-emacs@gnu.org; Thu, 11 Sep 2008 04:41:45 -0400 Original-Received: from arwen.uni-trier.de (BAH8eba.bah.pppool.de [77.135.142.186]) by dd18200.kasserver.com (Postfix) with ESMTP id ECF0B183621DA; Thu, 11 Sep 2008 10:41:44 +0200 (CEST) In-Reply-To: <200809092302.44216.juanma_bellon@yahoo.es> (Juanma's message of "Tue\, 9 Sep 2008 23\:02\:44 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2.50 (darwin) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57415 Archived-At: Juanma 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