From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: arthur miller Newsgroups: gmane.emacs.help Subject: RE: Which modifier to use? Date: Sun, 6 Dec 2020 00:58:01 +0000 Message-ID: References: , <5424e4e436b885fcb188d29710dfabc0@isnotmyreal.name> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2351"; mail-complaints-to="usenet@ciao.gmane.io" To: TRS-80 , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 06 01:59:03 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kliOD-0000Su-Hb for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 01:59:01 +0100 Original-Received: from localhost ([::1]:60964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kliOC-0004xF-Ix for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 19:59:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kliNM-0004ww-7m for help-gnu-emacs@gnu.org; Sat, 05 Dec 2020 19:58:08 -0500 Original-Received: from mail-oln040092067014.outbound.protection.outlook.com ([40.92.67.14]:37191 helo=EUR02-AM5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kliNJ-0004RL-KP for help-gnu-emacs@gnu.org; Sat, 05 Dec 2020 19:58:07 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YZjdL6IADr5IycMNyG3Giuaf6rv/M4czZGQAYVVuGaMQcFRUVN90+m4gRryNC7RU9wZuZe6uYr51/QOs9MRLPIdHBx1rFQJg+W7TtWkItxM7PlJI/FsoufWb4yj6e4XIe3LHJ36EjE58RCJEDe0Y1mf+zN4bTxX6Dt9IGWcc4mE+KjyVPVOXz+Lt/zhEyjB6uQ9q+qJh69QDrdtJKrx4pO6UQOmhLUOLU4o3zDiRxywevkqcCt1MIPIFZwmIAblr9z95QYAlJwiy4Pi4u5+ZIOMcdCtk4tJPiW/Im12IsfV9Wqz6UY+iFzj6B8J6OeoJZXJGt9igyIKWuWjjq8fQfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+dDrD1Kt1Q12PL5/tMDd829NFe9X5fYHFYOcxLFobmE=; b=bOyH06ZApWs7FaOGWuXhwxxxvDJZx8aqgK3mNWw3BnDNIe/3UPP/BPHAOlEaVOa5t9sG62fr8EGBJA2+9BUXCp8Y4fRcrH9GC1FvwdGCEELXk+Pbe7LDsCwIvH0hX+8RNL5O2Cq/H40EFB5+Uag4eDDGCWBuUfyRLkbB6h6rLbhLcRWGKchbhF7i8J0VJ7qclzPIe0CS/dCMqtOV0toA+UYA5kwc70aC6JO2SHwzomF9BwPNxH6qnFztS2GzpnXOYCGBYF+b1KpskWT4nrFvA/q1W/8A5hNV8VTJwHfV/BfGxYQLrH0Pw50fwdHIs6lcxRn3v8vz46YHfQhkl8Exyg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+dDrD1Kt1Q12PL5/tMDd829NFe9X5fYHFYOcxLFobmE=; b=YN8UFsWA2NlMVg69jU/NuzAxOufpkm5FxQ3B5YT6IzzlnYTHdsxjOJ1dcExSD1e3TqiPrG019/XwDhcCmE+OnxVrMDrRLYfn5H0Q21FCvEZuU3hSoJ2ux9+ZvdGOx3/xE8hqaPYIqL1kkBQUtSZ5aQBXI7jZ+HVf5BvMMzuWhCsHHHO25wJ9PmmK3KeUOeL9ulD0tW5cU2S1lveqD+vb2Vixyid/e3AZkpJcOFfEXShRxDZFIH/6o6c2FrQUs4kPC7ctpaDwXYB9i36ucU6NsunUvmKOAZM8OQKHBCFno4DSRRrK0aHPKNhs5EjbMBHSW7NVdnxqYX1GgNdqpPD34A== Original-Received: from AM5EUR02FT006.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1c::45) by AM5EUR02HT191.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1c::229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17; Sun, 6 Dec 2020 00:58:01 +0000 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com (2a01:111:e400:7e1c::43) by AM5EUR02FT006.mail.protection.outlook.com (2a01:111:e400:7e1c::77) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Sun, 6 Dec 2020 00:58:01 +0000 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993]) by AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993%7]) with mapi id 15.20.3632.018; Sun, 6 Dec 2020 00:58:01 +0000 Thread-Topic: Which modifier to use? Thread-Index: AQHWy1a+t+EQbzNnx0CwMJRTxwPZvqnpHcAAgAAhQ/U= In-Reply-To: <5424e4e436b885fcb188d29710dfabc0@isnotmyreal.name> Accept-Language: sv-SE, en-US Content-Language: sv-SE x-incomingtopheadermarker: OriginalChecksum:BE9AA784AA5BC9D65148C1B95478578F67CAF98B0A31270EC4D648B3180D75E0; UpperCasedChecksum:A5E5CC16A84C810EC7F2A33D8A0378360251854937BCBD9E558C14335FF71D8F; SizeAsReceived:6911; Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [lPO/+yJeefu+outEp+eB4UVUXg3NBQRn] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 3b7da5b2-37a4-4ccc-9401-08d89981fb11 x-ms-traffictypediagnostic: AM5EUR02HT191: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 7LIe2cGQxg4lM8edBUCwSIFn31AxD7H1nZZC8yAKMcHP6TLZbcROznzNCsiJK4TrbtQ+zQbRNSwslwS2pDg+jShN7Q6TrAFYNfNGpV8NoR1va4Zb54ku3LD+kb6YWlu678vcqYyHRFM5ZGWcg7oOLyoCde9jiAQNuFJPy3G1HkUBQBipRLpdPn4fKIXy5o0Xe54dPs7offkvrbzhj5KN2jzxyZIOMKfydoshIcL1mmVJ75xTFvyp4QwslkVHQDK2 x-ms-exchange-antispam-messagedata: qGVXBXXk8OpWSobxahbIVCoTUje+bmMKqbOM4HnH0O05bsadH5oObT1h9oUM1hoGv+1TlnU583wAVlX4cFdpeGKzh6rZxg2fWJrXYx5uY7upydk9qh8QI4KZbCueP2g8PmYRv3HahfUySHC5XfjJiA== x-ms-exchange-transport-forked: True X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: AM5EUR02FT006.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 3b7da5b2-37a4-4ccc-9401-08d89981fb11 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Dec 2020 00:58:01.4581 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR02HT191 Received-SPF: pass client-ip=40.92.67.14; envelope-from=arthur.miller@live.com; helo=EUR02-AM5-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:126068 Archived-At: NP, THX! -------- Originalmeddelande -------- Fr=E5n: TRS-80 Datum: 2020-12-05 23:59 (GMT+01:00) Till: help-gnu-emacs@gnu.org =C4mne: Re: Which modifier to use? > On 2020-12-05 17:34, arthur miller wrote: > >> TRS-80 wrote: >> >> I think it is little known that you can define keys in this way, I >> learned it while setting up which-key. If you use that package, the >> car of the alist will appear as the description, allowing you to >> create sort of poor man's menu system. :) > > Thanks! > > Yes, I use which-key, but I certainly didn't know I could define keys > with descriptions. Not sure I have use for it immediately, but > interesting indeed! Just be aware there is a specific order that things need to go[0]: (setq which-key-enable-extended-define-key t) (require 'which-key) (define-key [...]) (which-key-mode) Above is only for which-key purposes. Doing define-key in that alist style as my first email is supported by vanilla define-key (or so I learned). Cheers, TRS-80 [0] https://github.com/justbur/emacs-which-key/issues/263