From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: Re: To get list of key bindings sorted by modifier Date: Mon, 7 Dec 2020 22:32:47 +0300 Message-ID: References: <535062876ff02a60e2fd79e2011f1676@isnotmyreal.name> <83im9fbhu0.fsf@gnu.org> <83wnxt8vv7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11217"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 07 20:34:28 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 1kmMHA-0002kZ-T5 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 07 Dec 2020 20:34:24 +0100 Original-Received: from localhost ([::1]:38092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmMH9-0002iK-TN for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 07 Dec 2020 14:34:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50546) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmMFz-0002i7-21 for help-gnu-emacs@gnu.org; Mon, 07 Dec 2020 14:33:11 -0500 Original-Received: from static.rcdrun.com ([95.85.24.50]:47513) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmMFu-0005TN-OU; Mon, 07 Dec 2020 14:33:10 -0500 Original-Received: from localhost ([::ffff:197.157.0.57]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002C0003.000000005FCE836F.00005CDB; Mon, 07 Dec 2020 19:33:03 +0000 Content-Disposition: inline In-Reply-To: <83wnxt8vv7.fsf@gnu.org> Received-SPF: pass client-ip=95.85.24.50; envelope-from=bugs@gnu.support; helo=static.rcdrun.com X-Spam_score_int: 14 X-Spam_score: 1.4 X-Spam_bar: + X-Spam_report: (1.4 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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:126163 Archived-At: * Eli Zaretskii [2020-12-07 18:44]: > > Date: Mon, 7 Dec 2020 09:52:41 +0300 > > From: Jean Louis > > Cc: help-gnu-emacs@gnu.org > > > > But I have 2 Alt keys where the right one I never use. > > > > How can I make the right tab distinguished new modifier key? > > That is specific to your keyboard software and driver, so I don't know > the answer. This is just GNU Hyperbola/Linux-libre and Thinkpad notebooks. I have seen online people switch right Alt to become Ctrl2 but I would like right Alt to become Alt as now is Meta. Tried with xmodmap but it is still meta in Emacs. >From manual: (info "(emacs) Modifier Keys") ,---- | Even if your keyboard lacks these additional modifier keys, you can | enter it using ‘C-x @’: ‘C-x @ h’ adds the Hyper flag to the next | character, ‘C-x @ s’ adds the Super flag, and ‘C-x @ a’ adds the Alt | flag. For instance, ‘C-x @ h C-a’ is a way to enter ‘Hyper-Control-a’. | (Unfortunately, there is no way to add two modifiers by using ‘C-x @’ | twice for the same character, because the first one goes to work on the | ‘C-x’.) `---- But I would not like pressing 3 keys C, x and @ when I already have unused Alt on right side of the keyboard and I also have Menu which does sometimes Emacs stuff, sometimes Window Manager stuff depending of the window manager. By all means I wish to shorten the keys that I press. Caps Lock - to be modifier Right Alt - could be Alt Right Control - could be Hyper Right Menu key - could be something as well That would greatly enhance my work. I have now made Caps Lock to by my Hyper: ~/.Xmodmap clear lock clear control clear mod1 clear mod2 clear mod3 clear mod4 clear mod5 keycode 37 = Hyper_L keycode 66 = Control_L add control = Control_L Control_R add mod1 = Alt_L Alt_R Meta_L add mod2 = Num_Lock add mod3 = Hyper_L add mod4 = Super_L Super_R add mod5 = Mode_switch ISO_Level3_Shift This may not be alright all. For right now it works. As C-h k with CapsLock-m for example gives me: H-m is undefined. Hyper key is there that is great. CapsLock I never use in its own definition. It makes sense to use Caps Lock on a real physical type writer which is heavy and difficult to keep in Caps Lock position by using hands. On computer is not necessary. Key is more useful to become Hyper key. I still need to understand how to make right Alt behave as Alt and not Meta.