help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnus: how to redefine a keymap


From: Francis Moreau
Subject: gnus: how to redefine a keymap
Date: Fri, 23 Oct 2009 13:41:43 -0700 (PDT)
User-agent: G2/1.0

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]