From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: ding@gnus.org
Subject: Re: remapping 'S' in summary-mode-map does not stick
Date: Wed, 10 Sep 2014 14:21:10 +0200 [thread overview]
Message-ID: <m2ppf33bux.fsf@top-wifi.irisa.fr> (raw)
In-Reply-To: <878ulrkjnl.fsf@ucl.ac.uk>
[-- Attachment #1: Type: text/plain, Size: 987 bytes --]
On 2014-09-10 08:40, Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>> 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
Thank you for this suggestion. I was using an anonymous function, but
it's much cleaner with a named one.
Alan
--
OpenPGP Key ID : 040D0A3B4ED2E5C7
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 494 bytes --]
prev parent reply other threads:[~2014-09-10 12:21 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
2014-09-10 12:21 ` Alan Schmitt [this message]
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=m2ppf33bux.fsf@top-wifi.irisa.fr \
--to=alan.schmitt@polytechnique.org \
--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).