all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tatsu Takamaro <tatsu.takamaro@gmail.com>
To: Yuri Khan <yuri.v.khan@gmail.com>
Cc: Drew Adams <drew.adams@oracle.com>,
	"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: [External] : Q1 - the keys' bindings to work more widely
Date: Thu, 19 Dec 2024 01:14:06 +0300	[thread overview]
Message-ID: <5b491f22-03e0-4fde-0a81-0c9d1e50a3b0@gmail.com> (raw)
In-Reply-To: <CAP_d_8Vtp_afE-VoVahYBx+OMS2vvt=6rahj+di-KXF17AD1jg@mail.gmail.com>

Thank you! This works perfect.

 >>

    I must note that you’re in for a lot of swimming against the current
    if you want to reclaim C-c from its established Emacs role as a
    prefix.
    A lot of modes bind some of their functionality to sequences
    starting with C-c, and you will either have to rebind them in order to
    start using them, or they will wrest C-c back from you.

As far as I read in the Emacs conventions, the C-c is reserved for 
users, so other modes should not use it. But if some plugin tend to use 
C-c for somewhat, I'll have to deal with it, yes. This is the price I'm 
ready to pay to stay with regular and globaly accepted hotkeys. Btw, the 
Current is a global tendency and even an old convention to use C-c for 
copy and so on. So it is Emacs who is swimming against it (for 
historical reasons). Maybe it will drift to use the Ctrl+Z/X/C/V/O/Q 
gradually. The CUA mode is the first step in this direction. Time will show.

вт, 17.12.2024 9:28, Yuri Khan пишет:
> On Tue, 17 Dec 2024 at 12:42, Tatsu Takamaro<tatsu.takamaro@gmail.com>  wrote:
>
>> This one works:
>>
>>      *:keymap '(keymap (?a . kill-ring-save)))*
>>
>> But I'm not sure why.
> You’re not actually supposed to type out keymaps in their internal
> representation. Drew probably does that because he learned Emacs
> before the introduction of key binding helper functions.
>
>      (defvar ttkeys-mode-map
>        (define-keymap
>           "C-c" #'kill-ring-save
>           "C-a" #'mark-whole-buffer))
>
>      (define-minor-mode ttkeys-mode "Regular key bindings"
>        :init-value t
>        :lighter " TT"
>        :global t
>        :keymap ttkeys-mode-map)
>
> (I must note that you’re in for a lot of swimming against the current
> if you want to reclaim C-c from its established Emacs role as a
> prefix. A lot of modes bind some of their functionality to sequences
> starting with C-c, and you will either have to rebind them in order to
> start using them, or they will wrest C-c back from you.)


  reply	other threads:[~2024-12-18 22:14 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-14 23:46 Q1 - the keys' bindings to work more widely Tatsu Takamaro
2024-12-15  2:15 ` [External] : " Drew Adams
2024-12-16 23:11   ` Tatsu Takamaro
2024-12-16 23:55     ` Drew Adams via Users list for the GNU Emacs text editor
2024-12-17  0:05       ` Drew Adams
2024-12-17  0:16         ` Tatsu Takamaro
2024-12-17  2:17           ` Drew Adams
2024-12-17  5:41             ` Tatsu Takamaro
2024-12-17  6:28               ` Yuri Khan
2024-12-18 22:14                 ` Tatsu Takamaro [this message]
2024-12-19  2:13                   ` Drew Adams
2024-12-17  5:42             ` Tatsu Takamaro
2024-12-15 10:05 ` Alain.Cochard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5b491f22-03e0-4fde-0a81-0c9d1e50a3b0@gmail.com \
    --to=tatsu.takamaro@gmail.com \
    --cc=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=yuri.v.khan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.