From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: <ding@gnus.org>
Subject: Re: remapping 'S' in summary-mode-map does not stick
Date: Wed, 10 Sep 2014 08:40:46 +0100 [thread overview]
Message-ID: <878ulrkjnl.fsf@ucl.ac.uk> (raw)
In-Reply-To: <m2tx4guh7e.fsf@polytechnique.org>
[-- Attachment #1: Type: text/plain, Size: 1208 bytes --]
On Wednesday, 10 Sep 2014 at 08:23, Alan Schmitt wrote:
> Hello,
>
> I remap several key bindings for gnus-summary-mode-map and most of them
> work, with one exception: binding 'S'.
>
> This is what I have for this binding in my .gnus.el:
>
> (define-key gnus-summary-mode-map (kbd "S") 'gnus-summary-next-article)
>
> I could set that binding in gnus-summary-mode-hook, but it bothers me to
> set is every time I enter summary mode and not once and for all.
The reality is that this is the only way to do it, as far as I
understand. I remap my keys in mode hooks for summary and article
modes. For instance:
#+begin_src emacs-lisp
(defun esf/alter-summary-map ()
(local-set-key "d" 'gnus-summary-delete-article)
(local-set-key "d" 'gnus-summary-expand-window)
(local-set-key "e" 'gnus-summary-mark-as-expirable)
(local-set-key "u" 'gnus-summary-put-mark-as-unread) ;-next-unread
(local-set-key "w" 'gnus-article-fill-long-lines)
)
(add-hook 'gnus-summary-mode-hook 'esf/alter-summary-map)
#+end_src
--
: Eric S Fraga, GnuPG: 0xFFFCF67D
: in Emacs 24.4.50.1 + Ma Gnus v0.12 + evil-git-7c4c180
: BBDB version 3.1.2 (2014-05-06 11:45:08 -0500)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 180 bytes --]
next parent reply other threads:[~2014-09-10 7:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <m2tx4guh7e.fsf@polytechnique.org>
2014-09-10 7:40 ` Eric S Fraga [this message]
2014-09-10 12:21 ` Alan Schmitt
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=878ulrkjnl.fsf@ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--cc=ding@gnus.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).