From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84907 Path: news.gmane.org!not-for-mail From: Eric S Fraga Newsgroups: gmane.emacs.gnus.general Subject: Re: remapping 'S' in summary-mode-map does not stick Date: Wed, 10 Sep 2014 08:40:46 +0100 Organization: CPSE, Department of Chemical Engineering, University College London (UCL) Message-ID: <878ulrkjnl.fsf@ucl.ac.uk> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1410334924 14260 80.91.229.3 (10 Sep 2014 07:42:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2014 07:42:04 +0000 (UTC) To: Original-X-From: ding-owner+M33151@lists.math.uh.edu Wed Sep 10 09:41:57 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XRcXK-0003UC-II for ding-account@gmane.org; Wed, 10 Sep 2014 09:41:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1XRcWY-000380-Co; Wed, 10 Sep 2014 02:41:06 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1XRcWU-00037g-NG for ding@lists.math.uh.edu; Wed, 10 Sep 2014 02:41:02 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1XRcWQ-00030q-G4 for ding@lists.math.uh.edu; Wed, 10 Sep 2014 02:40:59 -0500 Original-Received: from mail-db3on0139.outbound.protection.outlook.com ([157.55.234.139] helo=emea01-db3-obe.outbound.protection.outlook.com) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XRcWN-0003SU-KA for ding@gnus.org; Wed, 10 Sep 2014 09:40:56 +0200 Original-Received: from localhost (95.151.192.129) by AM3PR01MB0647.eurprd01.prod.exchangelabs.com (25.160.4.14) with Microsoft SMTP Server (TLS) id 15.0.1024.12; Wed, 10 Sep 2014 07:40:49 +0000 X-Url: http://www.ucl.ac.uk/~ucecesf/ Mail-Followup-To: ding@gnus.org X-Originating-IP: [95.151.192.129] X-ClientProxiedBy: AM3PR03CA047.eurprd03.prod.outlook.com (10.141.191.175) To AM3PR01MB0647.eurprd01.prod.exchangelabs.com (25.160.4.14) X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;UriScan:; X-UCLLIVE-SCLRULE: HASRUN X-Forefront-PRVS: 033054F29A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019019)(6069001)(6009001)(24454002)(189002)(377424004)(199003)(51704005)(81542001)(76506005)(77096002)(90102001)(42186005)(85852003)(92726001)(92566001)(83072002)(87976001)(36756003)(97736003)(230783001)(86362001)(85306004)(83322001)(19580395003)(74826001)(21056001)(4396001)(66066001)(81342001)(71186001)(80022001)(64706001)(107886001)(20776003)(2351001)(107046002)(110136001)(105586002)(106356001)(102836001)(50986999)(76176999)(76482001)(54356999)(77982001)(99396002)(79102001)(101416001)(74482001)(31966008)(74662001)(74502001)(46102001)(33646002)(84326002)(95666004);DIR:OUT;SFP:1102;SCL:1;SRVR:AM3PR01MB0647;H:localhost;FPR:;MLV:sfv;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-OriginatorOrg: ucl.ac.uk X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84907 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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 =2D-=20 : 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) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlQQAH4ACgkQyJGT2P/89n3QTQCfYuSojpw9OyJRPHex1Ro0CCgY jCoAnRMmpEifWy2NC7ywy+rSCk5x74l4 =nhN4 -----END PGP SIGNATURE----- --=-=-=--