info-gnus-english
[Top][All Lists]
Advanced

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

Re: overwriting c catchup shortcut in Group buffer


From: Stefan Huchler
Subject: Re: overwriting c catchup shortcut in Group buffer
Date: Mon, 11 May 2015 00:44:32 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Emanuel Berg <embe8573@student.uu.se> writes:

> Stefan Huchler <stefan.huchler@mail.de> writes:
>
>> (progn
>>   (defun spiderbit-gnus-group-prepare-setup ()
>>     "for `gnus-group-prepare'."
>>     (local-set-key (kbd "c") 'previous-line) 
>>     (local-set-key (kbd "t") 'next-line)
>>     (local-set-key (kbd "h") 'backward-char)
>>     (local-set-key (kbd "n") 'forward-char))
>>   (add-hook 'gnus-group-prepare-hook
>>   'spiderbit-gnus-group-prepare-setup))
>
> Do you have a `progn' here in order to be able to
> evaluate it all at once? Otherwise you don't need it.


I am using the package here:

https://github.com/xahlee/xah-fly-keys

the author told me that he handles mode specific overwrites in that
file:

https://github.com/xahlee/xah-fly-keys/blob/master/xah-fly-keys-mode-specific.el

he used there much progn so I did the same, no special choice from me.



>> gnus-group-prepare-hook
>> gnus-group-menu-hook
>> gnus-group-mode-hook
>
> Try without using hooks:
>
>     (require 'gnus-group)
>     (define-key gnus-group-mode-map "h" 'backward-char)
>     ;; (define-key ...


I did try it this way did not work too: I added your suggested blog to
this mode specific file mentioned above and evaluated it.


(progn
  (require 'gnus-group)
  (define-key gnus-group-mode-map (kbd "c") 'previous-line) 
  (define-key gnus-group-mode-map (kbd "t") 'next-line)
  (define-key gnus-group-mode-map (kbd "h") 'backward-char)
  (define-key gnus-group-mode-map (kbd "n") 'forward-char)
  )





reply via email to

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