From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: [External] : Q1 - the keys' bindings to work more widely Date: Tue, 17 Dec 2024 13:28:18 +0700 Message-ID: References: <6fc3743a-6a0c-cc4d-9470-dcd634d3b461@gmail.com> <43a99cfc-fb6a-6751-7eda-48bb322e6fb1@gmail.com> <03456761-0989-478b-2b77-593142693ca7@gmail.com> Mime-Version: 1.0 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="25176"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Drew Adams , "help-gnu-emacs@gnu.org" To: Tatsu Takamaro Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 17 07:29:12 2024 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 1tNR4y-0006Ql-In for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 17 Dec 2024 07:29:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNR4O-0008Jj-8p; Tue, 17 Dec 2024 01:28:36 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tNR4L-0008JN-OM for help-gnu-emacs@gnu.org; Tue, 17 Dec 2024 01:28:33 -0500 Original-Received: from mail-vk1-xa35.google.com ([2607:f8b0:4864:20::a35]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNR4K-0005Ho-1d for help-gnu-emacs@gnu.org; Tue, 17 Dec 2024 01:28:33 -0500 Original-Received: by mail-vk1-xa35.google.com with SMTP id 71dfb90a1353d-5188311e61cso1508616e0c.2 for ; Mon, 16 Dec 2024 22:28:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734416910; x=1735021710; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=da8xDGaEO48+nLZbtmPpCr/THHeuMuOPNQXlvG7VGT8=; b=AJpdlU5L2I+XEhmcMFpDoUOKvnrovP1c+biXU8oUQ+bdTX4VNorGOuqMKPx63NG3uH VRHlA39NXDjH/D7nvdUqrm3qvBwqw31EPPt1jXlzq6rH/U8HcSxj4n2fZp0qHoQXKFXu Nb07kO2J48eOrJ1qvl//upH47O7YAWrVjMk6i5ZHi18lANSZwOuobSqotP/2W77xNMM3 ra5etdAhj+3UxvTdpwGKzW/63YRweX5mt1IjztzIGQb9R5i3EEfwhseimNKjMJJb08+q BIgm7Sw8lQ4Bog/AwiC8blmayN1mpd+bV+ZanlZgS0orpZ868s3m2whwcngpuGyKMX9y FkXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734416910; x=1735021710; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=da8xDGaEO48+nLZbtmPpCr/THHeuMuOPNQXlvG7VGT8=; b=dpCNCzDb8j7zpxJSm6aVCVPAWmUTeW131s+e/7Xbg1M9Bhe9E0sRf/qJePSMGtA8cJ nVQXf3rEUraPIfT4d6nwZ7vrpsGXv+y527AEh80aTCF2W63w2U38kndsPx+86TEzGXoR DPn0n9CRo4g2rpIpP/aP2LAFWlaYFEmfWNQTGh44A8Nv9vtTjqwdSPmcsja8VDIpLIBA uCI4Kk4wXdIRKODoduxgrkT8wg4teh1E2tOFrXpPOoLm5dISICXlUnmFU6qsjBB27lr3 3NPUD9Ij6qNjwC+Of5foUFzvsuHuhMXbVz5tZy2byS1F1YRb+3V7ldzlaSMLk11SKCQk 9LLQ== X-Forwarded-Encrypted: i=1; AJvYcCWkYsg8l669KF+PNYyI0oJt7IzzY5hMZCZv/lMq7/aGSbw4CLFT4VzlgVllPL0D90PQriGzhUTd68wIsb06uA==@gnu.org X-Gm-Message-State: AOJu0YyrUR4fB25aZlA8z6H/+SmBUjnQLm676+4rFdvcnGVCMPSrDqGy 2/FJLr55YVgbQTUoVKc/wllCTGl7vL3EPQTPCQjvO7Lk/HifZi6KWm+TcS28qWx8FA3jIKfVYSN 4AOEISxeq6SIi6/XCpccBdUxj2YA= X-Gm-Gg: ASbGnctQMOx3m1R1V7vasEscBxx2Jy+PJs/H6SJJ5GgQu8ikCgpWgbne9lTlb1CBh63 9t1abqyvtiDKUP+ZbR4M/M2wFetZlS/xPERMVTw== X-Google-Smtp-Source: AGHT+IFwSwfaZmUXsps5R9Bb4qbyXg6fwoNILRZsKamumQo0KxQKRS8MBq91kUExK+K776jP9/1WapMW2X2UiMyztfY= X-Received: by 2002:a05:6122:a0e:b0:518:a261:adca with SMTP id 71dfb90a1353d-518ca460b50mr13299839e0c.8.1734416909870; Mon, 16 Dec 2024 22:28:29 -0800 (PST) In-Reply-To: <03456761-0989-478b-2b77-593142693ca7@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::a35; envelope-from=yurivkhan@gmail.com; helo=mail-vk1-xa35.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.29 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148860 Archived-At: On Tue, 17 Dec 2024 at 12:42, Tatsu Takamaro wro= te: > This one works: > > *:keymap '(keymap (?a . kill-ring-save)))* > > But I'm not sure why. You=E2=80=99re 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=E2=80=99re in for a lot of swimming against the curre= nt 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.)