From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Consult some suggestions for adjusting keyboard shortcuts to bind conflicts. Date: Sun, 11 Apr 2021 08:22:50 +0800 Message-ID: References: <5cf18ab57c31a889d17d@heytings.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38705"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Gregory Heytings Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 11 02:23:56 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 1lVNtL-0009xb-PR for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 11 Apr 2021 02:23:55 +0200 Original-Received: from localhost ([::1]:48434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVNtK-0005Wm-OS for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 10 Apr 2021 20:23:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38318) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVNsY-0005Wf-JX for help-gnu-emacs@gnu.org; Sat, 10 Apr 2021 20:23:07 -0400 Original-Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]:45761) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lVNsW-0006UE-EC for help-gnu-emacs@gnu.org; Sat, 10 Apr 2021 20:23:06 -0400 Original-Received: by mail-lf1-x134.google.com with SMTP id g8so15505829lfv.12 for ; Sat, 10 Apr 2021 17:23:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=M4SdHcct/OaYH2pU6O2o24PRFw8gP1irBghLYAM3Lhs=; b=OGPyqUDIEoUag2ZcEHlzAfhFbzfcqcMH1JllRAyfJ5T+E/grHrOy6aT3NXZji06eTn fQhCsQRaeBEmFjl7U16LpK0uXj5Uw1dZg5Qz8tGcuXfv4Rxt9rSYoXQmHLOszxsOE3wo r+vdEqLtZpK/nI4cWQ7NmDB9DMhriIGG1Rught15fWui4P2CMpNZooWdJbLu36ULPh0w xO32sNVlgPH4fua2Fi2QMlk/5CWPdKxQwQSfDBtpR6pnpbpMwB6H6zfMzGNGqf+JJeZQ eX7eUxdN69DZxQGb+ZMl+5+pvGIknFXL3VeKzBz9Xqi9MtCFsnoVctAx5x3S/nZMTN94 uXhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=M4SdHcct/OaYH2pU6O2o24PRFw8gP1irBghLYAM3Lhs=; b=LWsA8c23mQ38IK6cQAdA1iw2D6jZ8ePgC4H9LJQVM+EPK8aOYxTJCCgMj4rvlHQG/z Kh5e9ZXRSai/yUU4Iy4LcoCYHB7ZtxxiWNREg3AsZRRPNgoy/9JzAq6HdNKOW5VR2lXs LLBMNOjAsI/eM8XSOHCyBYggoe5UhN7y8OQkdBJ0YajIGE8+jmCB6cvLucLrSd4luiD3 ss086yl7FhbijJedV2JZvJqJzMIoSiikPYdM0MuN6XxQIrSO9mDuUtmm2d81sznjCIa4 rDUZgrpT4PNZot9eVBnP/Dp5NkbtywiwqMlX6i/KN+mnMRAUvIbDKOmv48VDANR0Mb1O eZyA== X-Gm-Message-State: AOAM530e9at2p124eBZwcFvRMUfep2cJHsaRaUBbm86guZJdfjVnEvV+ 2xj2IIyrN7uePDGa87RRb4VxXuzyOM2UmzfYawc= X-Google-Smtp-Source: ABdhPJy4wz8b6q/ZAPqDn0o9f0Nb2Q3VnZTPZ2ipo9WFnkfk4d+xqCk6Ypiqcc1QxLAsujXifwmqQi0YkgARDnxZvOQ= X-Received: by 2002:a19:f501:: with SMTP id j1mr15181780lfb.231.1618100581740; Sat, 10 Apr 2021 17:23:01 -0700 (PDT) In-Reply-To: <5cf18ab57c31a889d17d@heytings.org> Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x134.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:128939 Archived-At: On Sat, Apr 10, 2021 at 10:26 PM Gregory Heytings wrote: > > > > > > 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. For the shortcut keys of the input method, another alternative is to disable the fcitx input method, and use emaca oriented/tailed internal input method, say, this one, , when working within emacs>. But I don't know to disable/overwrite the external application invocation with the one defined by Emacs itself, when click on the corresponding key sequence from within Emacs. Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Polytechnic University of Science and Technology engineering NO. 552 North Gangtie Road, Xingtai, China