From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/25991 Path: main.gmane.org!not-for-mail From: John Palmieri Newsgroups: gmane.emacs.gnus.general Subject: Re: Redefining keys in the pGnus summary buffer Date: 21 Oct 1999 20:13:50 -0700 Sender: owner-ding@hpc.uh.edu Message-ID: References: <87so34mcjo.fsf@morrigan.osa.com.au> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035163284 17122 80.91.224.250 (21 Oct 2002 01:21:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:21:24 +0000 (UTC) Return-Path: Original-Received: from bart.math.uh.edu (bart.math.uh.edu [129.7.128.48]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id XAA13751 for ; Thu, 21 Oct 1999 23:14:27 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by bart.math.uh.edu (8.9.1/8.9.1) with ESMTP id WAB15231; Thu, 21 Oct 1999 22:14:25 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 21 Oct 1999 22:14:36 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id WAA09704 for ; Thu, 21 Oct 1999 22:14:26 -0500 (CDT) Original-Received: from euler.math.washington.edu (root@euler.math.washington.edu [128.95.224.1]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id XAA13738 for ; Thu, 21 Oct 1999 23:13:52 -0400 (EDT) Original-Received: from goedel2.math.washington.edu (palmieri@goedel2.math.washington.edu [128.95.224.11]) by euler.math.washington.edu (8.9.3/8.9.3) with ESMTP id UAA16638 for ; Thu, 21 Oct 1999 20:13:51 -0700 (PDT) Original-Received: (from palmieri@localhost) by goedel2.math.washington.edu (8.9.3/8.9.3) id UAA06870; Thu, 21 Oct 1999 20:13:50 -0700 (PDT) Original-To: ding@gnus.org In-Reply-To: Daniel Pittman's message of "22 Oct 1999 11:03:55 +1000" Original-Lines: 38 User-Agent: Gnus/5.070097 (Pterodactyl Gnus v0.97) Emacs/20.4 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:25991 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:25991 Daniel Pittman writes: > I am having some trouble customizing the keyboard interface to pGnus > ("Pterodactyl Gnus v0.96") > > What I want to do is redefine the keystroke M-k to lower the score of a > thread. This is easy to do and I have it working. > > Getting the redefinition to happen automatically is a little harder > however. I tried doing '(define-key gnus-summary-mode-map ...)' in .gnus > and that didn't work -- I got the original binding. > > OK, I thought, and went hunting for where the keymap was frobnicated. > 'gnus-sum.el' seemed to be the place that did it. So, I wrapped my > redefinitions in an '(eval-after-load "gnus-sum" ...)' form. > > No joy. I still get the original key definition. > > So, can someone out there tell me where I am being stupid? I would like > to be able to customize the keyboard interface quite a bit :) I would expect that something like this would work, but I haven't tried it: (add-hook 'gnus-summary-mode-hook '(lambda () (define-key gnus-summary-mode-map ...))) (There are lots of "gnus-summary-BLAH-hook"s; gnus-summary-mode-hook looks like it should work, but maybe you need gnus-summary-generate-hook or gnus-summary-prepare-hook or one of the other ones. Do M-x apropos-variable gnus-summary.*hook for a list.) -- John H. Palmieri Dept of Mathematics, Box 354350 palmieri@math.washington.edu University of Washington http://www.math.washington.edu/~palmieri Seattle, WA 98195-4350