Gnus development mailing list
 help / color / mirror / Atom feed
From: Norman Walsh <norm@berkshire.net>
Subject: Need gnus-group-load-hook?
Date: 18 Apr 1997 13:59:22 -0400	[thread overview]
Message-ID: <qaybaggqkl.fsf@norm.berkshire.net> (raw)

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.


             reply	other threads:[~1997-04-18 17:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-18 17:59 Norman Walsh [this message]
1997-04-18 18:17 ` Per Abrahamsen
1997-04-18 19:00 ` David Moore
1997-04-19  2:06 ` Lars Magne Ingebrigtsen

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=qaybaggqkl.fsf@norm.berkshire.net \
    --to=norm@berkshire.net \
    /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 NNTP newsgroup(s).