From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Thorpe Newsgroups: gmane.emacs.help Subject: Re: Consult some suggestions for adjusting keyboard shortcuts to bind conflicts. Date: Tue, 13 Apr 2021 23:23:28 +0100 Message-ID: <87k0p5ddsv.fsf@robertthorpeconsulting.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30377"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Hongyi Zhao Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 14 00:24:48 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 1lWRSi-0007nh-Nh for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 14 Apr 2021 00:24:48 +0200 Original-Received: from localhost ([::1]:47366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWRSh-00086U-Mn for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 13 Apr 2021 18:24:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37674) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWRS9-00086H-Dv for help-gnu-emacs@gnu.org; Tue, 13 Apr 2021 18:24:13 -0400 Original-Received: from outbound-smtp21.blacknight.com ([81.17.249.41]:60918) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWRS6-00062q-O9 for help-gnu-emacs@gnu.org; Tue, 13 Apr 2021 18:24:12 -0400 Original-Received: from mail.blacknight.com (pemlinmail02.blacknight.ie [81.17.254.11]) by outbound-smtp21.blacknight.com (Postfix) with ESMTPS id 8A166CCCA8 for ; Tue, 13 Apr 2021 23:24:06 +0100 (IST) Original-Received: (qmail 11676 invoked from network); 13 Apr 2021 22:24:06 -0000 Original-Received: from unknown (HELO rt-inspiron-3480) (rt@robertthorpeconsulting.com@[51.37.90.145]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 13 Apr 2021 22:24:06 -0000 In-Reply-To: (message from Hongyi Zhao on Sat, 10 Apr 2021 21:40:07 +0800) Received-SPF: pass client-ip=81.17.249.41; envelope-from=rt@robertthorpeconsulting.com; helo=outbound-smtp21.blacknight.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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:128990 Archived-At: Hongyi Zhao writes: > On Thu, Apr 8, 2021 at 3:07 PM Robert Thorpe > wrote: >> >> Hongyi Zhao writes: >> >> > On Ubuntu 20.04, I use fcitx input framework, which use Ctr + SPC to >> > trigger input method and Saladict which use Alt + s to call its >> > standalone panel. >> > >> > But all the above key bindings have been predefined in Emacs. Could >> > you please give me some suggestions on adjusting keyboard shortcuts to >> > avoid binding conflicts? >> >> I'm not sure which way around you want to deal with the problem. >> >> I'm presuming you want to move the mappings in Emacs that Emacs uses for >> C-SPC and M-s. > > Or some suggestions to keep the Emacs key bindings as they are, but > instead, resolve conflicting by changing the other applications' > predefined key bindings. > >> Do you use Emacs in the terminal? > > May or may not. In that case I also think the keys I mentioned are the best. Those are * C-; * C-, * C-' * C-= * C-+ Here is why.... Those keys don't work on terminal emulators, at least not without significant configuration of the emulator. So, not only does Emacs not use them, it's unlikely that the Emacs developers will start using them for new features. For example you could map C-; to switch windows in your windowing system and map C-, to your input method program. Another poster mentioned the possibility of using both shift keys pressed together. I think that's a good idea too since Emacs doesn't use the binding or differentiate between left and right shift. (Not by default, I think it can). Someone also mentioned the possibility of repurposing M-s. Now I agree that there isn't that much useful on M-s. Personally I use occur (M-s o) and isearch-forward-symbol (M-s _). But remember that other things could be added in the future and you'd be missing out on them. Of course, you could move the M-s keymap elsewhere so you can retain those features but that's extra work. BR, Robert Thorpe