From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Keybinding styles (was: [External] : Re: Gitlab Migration) Date: Sat, 4 Sep 2021 08:44:02 -0700 Message-ID: <90277C17-5C44-411F-A43A-EFCA9C0B7345@gmail.com> References: <87lf4dnk0z.fsf@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29062"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Tim Cross , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Sep 04 17:45:30 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mMXrG-0007Lo-Bd for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Sep 2021 17:45:30 +0200 Original-Received: from localhost ([::1]:48930 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMXrE-000623-Uv for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Sep 2021 11:45:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMXpu-0004by-Um for emacs-devel@gnu.org; Sat, 04 Sep 2021 11:44:06 -0400 Original-Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]:42862) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mMXpt-0005lK-EW for emacs-devel@gnu.org; Sat, 04 Sep 2021 11:44:06 -0400 Original-Received: by mail-ot1-x332.google.com with SMTP id c19-20020a9d6153000000b0051829acbfc7so2774954otk.9 for ; Sat, 04 Sep 2021 08:44:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=2fJyd7rjH0+48wdRW1f5ok+sZGRSR6o0v64kk/kGA2A=; b=aXrNvSwkGa3uYyXrh+hp7HIH7qJbEXCmgSbtVjmJIJwAlfCiWJsuSZOK3gOiQ1SrPa sQ8nmmKDlWlr7Mut5qfBHTATe0Iz0q/y5/Afch53nfM9IBPnR3o06TM9NGVltaIIrbZ0 D4m2DhZQn4taCsDDP8z6NRn+2QbjL3isBzOJiUvY9x2DnMcesRsHh/0uCah2KiuF3MS/ OZBztdNUL2XsMq8FayxwVp/cLIqiwRZsfZr8jBAQ2TT3z+xeM3ta0nTSNDCYmf/hORjQ +SHGTUmK9EU6qX50DB3yr9oO7J5CNFKI0d0iDXwPih87TC6q+F3r5Fn2qgnSHjHhCork PwAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=2fJyd7rjH0+48wdRW1f5ok+sZGRSR6o0v64kk/kGA2A=; b=fJUffRGLkj+HL0WxGjU3t1AKEoKFnPQ2NY66xR7y48Y8e8NC7F+xU+pWvGHtNq+OYD Y9+BftTfs4Nbi/fwoI8rM7xNTQUYz1NJ9cdcUMyK42N0iXzDRwQoqMSqYE65ZerElHUU S2qsX8TkyMfSM0qKWNkOQoBnUhDa6SuyPjqoBZZ+1DtWeJ2RJZTBYUaJCtpe1Ob/vp5a VKlBR7FoYOL/fOL8QVihvdJnisto5Vdm9AKOASD31zF7CK9FKw7k3x9P1qc8CCVQig2w fL7tZGP93i92VT78R2YsdAss4HrMF52iedBrRNNd+Y5X1oMwrgu9quPr6HjvJDA5YMJB 98Aw== X-Gm-Message-State: AOAM530IVe26tXgOBetby7ezyepPa/9S8c44LVW3DEA6wjWQYL23BuRO k0/kFzGZwBapv/2XYSaVpmk= X-Google-Smtp-Source: ABdhPJxHJVhQp4owZnw3XPNP/pa+SJ3YlaVwQEJXy73X7ZEWs6iGsg277vqREVXHrAtqMliG/fAXiw== X-Received: by 2002:a9d:2208:: with SMTP id o8mr3750252ota.78.1630770243922; Sat, 04 Sep 2021 08:44:03 -0700 (PDT) Original-Received: from smtpclient.apple ([2600:1700:2ec7:8c9f:a86e:bc67:ca96:8c27]) by smtp.gmail.com with ESMTPSA id l3sm554325ooo.7.2021.09.04.08.44.03 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Sep 2021 08:44:03 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.13) Received-SPF: pass client-ip=2607:f8b0:4864:20::332; envelope-from=casouri@gmail.com; helo=mail-ot1-x332.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: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:273907 Archived-At: > On Sep 4, 2021, at 6:26 AM, Stefan Monnier = wrote: >=20 >> This would probably be a good candidate for the profiles idea. >=20 > FWIW, binding `kill-region` to `C-x` (and `copy-region-as-kill` to > `C-c`) is a hard problem in Emacs. `cua-mode` tackles it in a = pragmatic > way, and it's pretty good at it, but it comes with enough caveats that > I don't think it's a satisfactory solution. >=20 > If people are serious about trying to make Emacs easier for newcomers > accustomed to other tools, I think it might be worth developing > a package which starts with those C-` bindings and works its way > to create a complete new set of keybindings. >=20 > It's a work comparable to what is done for god-mode, Evil, etc... = where > you'll need to have ad-hoc tweaks for many (most?all?) modes. > So it's a long-term maintenance challenge. >=20 > I keep wishing someone came up with a clever way for modes to specify > their key-bindings in such a way that Emacs can automatically derive = from > it the keys to use "normally" as well as the keys to use in Evil or = the > keys to use in god-mode, or the keys to use in this hypothetical new > `really-cua-mode`, ... > So as to finally address this long-term maintenance challenge. >=20 On Mac I never had the problem because C-x/c/v and other system = shortcuts are bound to the Command key, not Control. So I can use Emacs = bindings with Control and system shortcuts with Command. Can we do the = same in Windows and Linux? We can use the win key as Control for = Emacs=E2=80=94seems that was where the Control key back in the day = anyway. Yuan=