unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "B. T. Raven" <nihil@nihilo.net>
To: help-gnu-emacs@gnu.org
Subject: Re: gnus: how to redefine a keymap
Date: Sat, 24 Oct 2009 03:13:36 -0500	[thread overview]
Message-ID: <ma6dnfq-5oysKn_XnZ2dnUVZ_tednZ2d@sysmatrix.net> (raw)
In-Reply-To: <70418856-fc02-4177-8ccc-397084621635@d23g2000vbm.googlegroups.com>

Francis Moreau wrote:
> hello,
> 
> I'd like to redefine the 'g' key in the group buffer so it queries
> only groups with a specific level or lower.
> 
> To do that I tried this:
> 
> (defun my-gnus-group-get-new-news ()
>   (interactive)
>   (gnus-group-get-new-news 2))
> 
> (add-hook 'gnus-group-mode-hook
>           (lambda ()
>             (define-key gnus-group-mode-map
>               [g] 'my-gnus-group-get-new-news)))
> 
> but it doesn't work.
> 
> If I map my-gnus-group-get-new-news function to 'F6' for example it
> works.
> 
> Could anybody tell me why it doesn't work with 'g' key ?
> 
> Thanks

How about:

.... [(g)] .....

or .... [?g]....

or .... "g" .....


??


  reply	other threads:[~2009-10-24  8:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-23 20:41 gnus: how to redefine a keymap Francis Moreau
2009-10-24  8:13 ` B. T. Raven [this message]
2009-10-24 11:16   ` Andreas Politz
     [not found]   ` <mailman.9394.1256383005.2239.help-gnu-emacs@gnu.org>
2009-10-24 12:16     ` Francis Moreau

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=ma6dnfq-5oysKn_XnZ2dnUVZ_tednZ2d@sysmatrix.net \
    --to=nihil@nihilo.net \
    --cc=help-gnu-emacs@gnu.org \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).