From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.help Subject: Re: Consult some suggestions for adjusting keyboard shortcuts to bind conflicts. Date: Sat, 10 Apr 2021 14:26:29 +0000 Message-ID: <5cf18ab57c31a889d17d@heytings.org> References: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21389"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Hongyi Zhao Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 10 16:27:46 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 1lVEaQ-0005RR-Gh for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 10 Apr 2021 16:27:46 +0200 Original-Received: from localhost ([::1]:49340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVEaP-00059I-HQ for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 10 Apr 2021 10:27:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39648) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVEZH-0004Xm-G6 for help-gnu-emacs@gnu.org; Sat, 10 Apr 2021 10:26:35 -0400 Original-Received: from heytings.org ([95.142.160.155]:36856) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVEZE-0005J0-B4 for help-gnu-emacs@gnu.org; Sat, 10 Apr 2021 10:26:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1618064789; bh=xTe+Kkhl7ZxK5X15YhAALYNbSrYbhFGq1d6SWVBdBYI=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=lZ20/F5F1zCpOqRrkRKiI7m3sj/Xx+OpX1LdpIoKDUQ7BQPOAnMzGBn/T68poVnke 0NjNg4w4tGGhzPOc+JyHcKPYZjZbQG8rvTznEWlSszHWrWQGgmYYfjwbHZ+FdWdLwM mCJCRytd3ashtC2cBh9F6AO9tA7xWHVXWqEWdzKfQbvEwxo4olx0q4met1I06pqmfc pQawU2Wz8PRv/YYInt7rMFZHCEcB5VKF5XwfCkF2+VL1UwsSBmxPbFBFHcSbd2bJcU 4ITe7CDG38hOXYGaysi61mCJQR3hQuXqff08eBGP86i51rWif0P7DhTkbevvxSc5F5 2ScLS+KrRf6Lg== In-Reply-To: Received-SPF: pass client-ip=95.142.160.155; envelope-from=gregory@heytings.org; helo=heytings.org 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_PASS=-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:128927 Archived-At: > > 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. > In general, it's not a good idea to use other programs when you use Emacs. Your operating system should be a bootloader for Emacs. ;-) Joking aside: > > 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? > That depends on your preferences. Either you want/can change the bindings used by other programs, or you change the bindings used by Emacs. If the choose the former, the problem is that Emacs puts commands on almost all keys. You can however safely use the function keys: F5 to F9 will by convention never be predefined by Emacs, the commands on F1 to F4 are available elsewhere, and F9 and F12 are AFAIK not used by Emacs. F10 and F11 are used by Emacs however, and their commands are not available elsewhere by default. If you choose the latter, you have the same problem: you have to move the commands to some free key, and there aren't many, especially if you want to use the same bindings in a terminal. But you can also safely use the functions keys, and the C-c LETTER bindings, which are by convention reserved for users.