From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: TRS-80 Newsgroups: gmane.emacs.help Subject: Re: Which modifier to use? Date: Sat, 05 Dec 2020 17:58:58 -0500 Message-ID: <5424e4e436b885fcb188d29710dfabc0@isnotmyreal.name> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36858"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Roundcube Webmail/1.3.15 To: 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 00:00:10 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 1klgXC-0009UP-JA for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 00:00:10 +0100 Original-Received: from localhost ([::1]:59096 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klgXB-0001Wx-Jm for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 18:00:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klgWB-0001V0-7g for help-gnu-emacs@gnu.org; Sat, 05 Dec 2020 17:59:08 -0500 Original-Received: from server173-4.web-hosting.com ([68.65.122.210]:53795) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klgW8-0001Xd-EH for help-gnu-emacs@gnu.org; Sat, 05 Dec 2020 17:59:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=isnotmyreal.name; s=default; h=Content-Transfer-Encoding:Content-Type: Message-ID:References:In-Reply-To:Subject:To:From:Date:MIME-Version:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=PW4cedyCUG/5bhzIIhV45PaAc2vYi0yK5/FNit8We3o=; b=E1f32wdlVyTMHAUKK8rPhOtcIW Y9OP8U013KFTHQAIu1FZGRi7tjxO7ruxLQ6vBuWN8Qb0HeFnNBstGOwB3Dz8XBiyMullfwQe8E/vx /EH1SjYGBg5P4UASGR5Tg+Hj1sv/yzvyXiUp2YTvUnnvMNG/EN5yMeQJcAzDSn1bxxZvEKs3gBgrC /djKZIofQwdDq1QJO3TRaSbmEBPy1GxsolgeGgN5T2McJn1EiM9Tw6bku6m9DEvGXZZO1Z4RcqG99 i07zcZoipJP/W/IFbTcZnnJq16JPYc5nA/w2QFNrCNWwpmqjQNypuEZKCERvxqcArkQkBh5Bdjaz0 aV/RU3vg==; Original-Received: from [::1] (port=57274 helo=server173.web-hosting.com) by server173.web-hosting.com with esmtpa (Exim 4.93) (envelope-from ) id 1klgW2-001OhM-6N for help-gnu-emacs@gnu.org; Sat, 05 Dec 2020 17:59:02 -0500 In-Reply-To: X-Sender: lists.trs-80@isnotmyreal.name X-OutGoing-Spam-Status: No, score=-0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server173.web-hosting.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - isnotmyreal.name X-Get-Message-Sender-Via: server173.web-hosting.com: authenticated_id: lists.trs-80@isnotmyreal.name X-Authenticated-Sender: server173.web-hosting.com: lists.trs-80@isnotmyreal.name X-From-Rewrite: unmodified, already matched Received-SPF: pass client-ip=68.65.122.210; envelope-from=lists.trs-80@isnotmyreal.name; helo=server173-4.web-hosting.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:126059 Archived-At: > 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