From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/10745 Path: main.gmane.org!not-for-mail From: Norman Walsh Newsgroups: gmane.emacs.gnus.general Subject: Need gnus-group-load-hook? Date: 18 Apr 1997 13:59:22 -0400 Sender: norm@norm.berkshire.net Message-ID: Reply-To: norm@berkshire.net NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035150562 26113 80.91.224.250 (20 Oct 2002 21:49:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:49:22 +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 LAA05388 for ; Fri, 18 Apr 1997 11:15:53 -0700 Original-Received: from sunsite.auc.dk (qmailr@sunsite.auc.dk [130.225.51.30]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id for ; Fri, 18 Apr 1997 19:59:28 +0200 Original-Received: (qmail 5265 invoked by uid 509); 18 Apr 1997 17:59:26 -0000 Original-To: ding@ifi.uio.no Original-Newsgroups: emacs.ding Original-Lines: 23 X-Newsreader: Gnus v5.4.45/Emacs 19.34 Original-Path: norm.berkshire.net Original-NNTP-Posting-Host: norm.berkshire.net Xref: main.gmane.org gmane.emacs.gnus.general:10745 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:10745 Hello world, I download mail from my ISP, where it's spooled, to my own machine through a mechanism that I hacked together. Don't ask. Anyway, I wanted "g" in the group buffer to run my own elisp function to "do the right thing". Redefining the key in my .gnus.el file doesn't work because the definition goes away when gnus finishes loading. It also goes away when I redefine it in gnus-load-hook. 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? (And would that way be gnus-group-load-hook a l\'a gnus-sum-load-hook? ;-) --norm P.S. I'm running gnus.5.4.45 under GNU Emacs 19.34.