Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Stefan Huchler <stefan.huchler@mail.de>
To: info-gnus-english@gnu.org
Subject: Re: overwriting c catchup shortcut in Group buffer
Date: Mon, 11 May 2015 00:44:32 +0200	[thread overview]
Message-ID: <87fv74uk6n.fsf@jupiter.lan> (raw)
In-Reply-To: <87mw1cozif.fsf@debian.uxu>

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	other threads:[~2015-05-10 22:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-10 19:40 Stefan Huchler
2015-05-10 22:10 ` Emanuel Berg
2015-05-10 22:44   ` Stefan Huchler [this message]
     [not found]   ` <mailman.2723.1431297892.904.info-gnus-english@gnu.org>
2015-05-10 23:00     ` Emanuel Berg
2015-05-10 23:21       ` Stefan Huchler
     [not found]       ` <mailman.2726.1431300114.904.info-gnus-english@gnu.org>
2015-05-11  0:00         ` Emanuel Berg
2015-05-23  0:41           ` Stefan Huchler

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

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

  git send-email \
    --in-reply-to=87fv74uk6n.fsf@jupiter.lan \
    --to=stefan.huchler@mail.de \
    --cc=info-gnus-english@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 NNTP newsgroup(s).