Emanuel Berg <[email protected]> writes: > Stefan Huchler <[email protected]> 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) ) _______________________________________________ info-gnus-english mailing list [email protected] https://lists.gnu.org/mailman/listinfo/info-gnus-english
