From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.help Subject: Re: Consult some suggestions for adjusting keyboard shortcuts to bind conflicts. Date: Mon, 12 Apr 2021 11:22:18 +0200 Message-ID: <20210412092218.GF18635@tuxteam.de> References: <87czv56yro.fsf@robertthorpeconsulting.com> <20210412075911.GC17156@tuxteam.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="924gEkU1VlJlwnwX" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35631"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.5.21 (2010-09-15) Cc: help-gnu-emacs , Nikolay Kudryavtsev To: Hongyi Zhao Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 12 11:24:07 2021 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 1lVsne-00098g-SA for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 12 Apr 2021 11:24:06 +0200 Original-Received: from localhost ([::1]:39372 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVsnd-0005WW-Sd for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 12 Apr 2021 05:24:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45426) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVsm0-0005Ct-3Z for help-gnu-emacs@gnu.org; Mon, 12 Apr 2021 05:22:24 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:38354) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1lVslx-0000TK-Ch for help-gnu-emacs@gnu.org; Mon, 12 Apr 2021 05:22:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=KL7Z3sh5tMyDl534zCY9ak3CZL98FuzIHWSzaN7sAho=; b=jcNBcg1DlHyrDELD4lv3lCwkAmWUdpMJVdlGmUAodqc1jyhBRjKcb1zxSWXKbYJPY2oGEpgC8QMGjkbEyAWDFxLGNULrUDmq5vMomnuh+mY57WPotx4mptCpsy0ZCOAXxiYiCFS3SIzTvrBmFhJKpheiv01PnswwG3EbkY4eZ+R6FytMxee/TXUWcb/xTRzXQmat8GTYxKGEMV30cJB9FxiTVkCgocO/qgsMlSxdJ4dVdIlE+ZJpqUNokkBl0Y3GjFVydBUUEJq2BHRjk/6F3RHjcuHPpubqIT4bb8qP/9djJBmpQkWCGVF+VbWv74I20diIYJnnv+M/u21EN5LI9w==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1lVslu-0005nZ-7j; Mon, 12 Apr 2021 11:22:18 +0200 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de 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:128968 Archived-At: --924gEkU1VlJlwnwX Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 12, 2021 at 05:06:22PM +0800, Hongyi Zhao wrote: > On Mon, Apr 12, 2021 at 3:59 PM wrote: > > > > On Mon, Apr 12, 2021 at 02:19:07PM +0800, Hongyi Zhao wrote: > > > On Mon, Apr 12, 2021 at 4:16 AM Nikolay Kudryavtsev > > > wrote: > > > > > > > > Well, do you use M-s prefix commands? I seldom do, so I've rebound = them > > > > to another prefix and use M-s for window switching instead. > > > > > > > > As for running Emacs with multiple input systems, my usual setup is > > > > setting up the OS to switch input language on Caps Lock and Ctrl+Sh= ift, > > > > since neither of those keys mess with Emacs in any way and I seldom= need > > > > Caps Lock. > > > > > > Caps Lock in itself will (de)activate the capital character input > > > mode, so, I think maybe Ctrl+Shift is more preferable. > > > > I'm another of those re-using Caps Lock for something different. In > > my case, I use double-shift (i.e. left-shift + right-shift) to switch > > language, and caps lock for Compose (I =E2=99=A5 compose: very handy :) >=20 > What do you mean by saying "compose"? The "Compose" key allows you to combine several keystrokes to enter other code points. You type [COMPOSE] plus two or more keystrokes. While there were some keyboards having an explicit Compose key, most keyboards these days are some variation on some IBM PC theme, lacking a Compose. In X, there is a way to define your own "Compose" sequences, and it is possible to redefine nearly everything. I remap my Compose key to Caps Lock in my ~/.xsessionrc like so: setxkbmap -model pc105 \ -layout "de,el" \ -variant "deadtilde," \ -option "compose:caps" \ -option "altwin:alt_super_win" \ -option "terminate:ctrl_alt_bksp" \ -option "grp:shifts_toggle" The line "-option "compose:caps" does this trick. There are many pre-defined compose sequences (in a typical Debian GNU/Linux installation somewhere aro= und /usr/share/X11/locale/*/Compose), allowing me to do useful things like [COMPOSE] + , + c =3D> =C3=A7 [COMPOSE] + " + e =3D> =C3=AB [COMPOSE] + U + g =3D> =C4=9F and less useful, but still funny things like [COMPOSE] + < + 3 =3D> =E2=99=A5 As you see, most of the time the combinations try to leverage optical similarities to make them easier to remember. I can augment this list by having an ~/.XCompose -- mine adds a few: include "%L" : "=E2=87=92" : "=E2=87=90" <0> : "=E2=98=80" : "=E2=98=BC" : "=E2=99=80" : "=E2=99=82" : "=E2=9A=A5" The "include %L" means "include whatever the current locale has as default, "Multi_key" is just the Xish name for compose. Cheers - t --924gEkU1VlJlwnwX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAmB0EUoACgkQBcgs9XrR2kbhTgCeJaplT16dEo36IkzszBIioG+5 xO0An2NhK8o69M4xFqNdpFo3WjBW0Xc5 =5wYy -----END PGP SIGNATURE----- --924gEkU1VlJlwnwX--