From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/10756 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Need gnus-group-load-hook? Date: 19 Apr 1997 04:06:11 +0200 Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035150573 26201 80.91.224.250 (20 Oct 2002 21:49:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:49:33 +0000 (UTC) Return-Path: Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.8.5/8.8.5) with SMTP id CAA16139 for ; Tue, 22 Apr 1997 02:23:28 -0700 Original-Received: from claymore.vcinet.com (claymore.vcinet.com [208.205.12.23]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id for ; Tue, 22 Apr 1997 11:12:43 +0200 Original-Received: (qmail 6269 invoked by uid 504); 22 Apr 1997 09:10:22 -0000 Original-Received: (qmail 6265 invoked from network); 22 Apr 1997 09:10:21 -0000 Original-Received: from ifi.uio.no (0@129.240.64.2) by claymore.vcinet.com with SMTP; 22 Apr 1997 09:10:04 -0000 Original-Received: from proletcult.slip.ifi.uio.no (root@ppp13.larris.ifi.uio.no [129.240.68.113]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Sat, 19 Apr 1997 04:21:03 +0200 Original-Received: (from larsi@localhost) by proletcult.slip.ifi.uio.no (8.8.2/8.8.2) id EAA02482; Sat, 19 Apr 1997 04:06:14 +0200 Mail-Copies-To: never Original-To: ding@gnus.org In-Reply-To: Norman Walsh's message of 18 Apr 1997 13:59:22 -0400 Original-Lines: 17 X-Mailer: Gnus v5.4.46/Emacs 19.34 X-Face: &w!^oO~dS|}-P0~ge{$c!h\ writes: > So I finally arrived at the following: > > ;; Maybe there ought to be a gnus-group-load-hook? > (add-hook 'gnus-group-mode-hook (lambda nil > (define-key gnus-group-mode-map "g" > 'get-new-mail-and-news))) > > Is there a better way to do this? No, that's the canonical way to alter mode-specific keymaps. Only you should use `local-set-key' instead of `define-key'. -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen