From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tatsu Takamaro Newsgroups: gmane.emacs.help Subject: Re: Remapping keys and creating my own keymap \\ too complicated\\ Date: Wed, 4 Dec 2024 20:05:28 +0300 Message-ID: References: <87plm7cu05.fsf@gmail.com> <48d40943-c50f-6cfe-21a5-b6ea8a9662c0@gmail.com> <87h67jcsg6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20967"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Cc: help-gnu-emacs@gnu.org To: Robert Pluim Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 04 18:06:21 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 1tIspR-0005KE-Me for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 04 Dec 2024 18:06:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIsoj-0002CO-T9; Wed, 04 Dec 2024 12:05:37 -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 1tIsoh-0002CG-Sv for help-gnu-emacs@gnu.org; Wed, 04 Dec 2024 12:05:35 -0500 Original-Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tIsof-0001WM-RR for help-gnu-emacs@gnu.org; Wed, 04 Dec 2024 12:05:35 -0500 Original-Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2ffc1009a06so101942071fa.2 for ; Wed, 04 Dec 2024 09:05:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733331931; x=1733936731; darn=gnu.org; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=q5oTidsFcBhUfDwsnGkgOdVcoDkcOtAbuYVecZu++VA=; b=iMalSJdd0XxVt2xAya+hiMFpbZyextfV6OEVUo8nBB5ua1yIe2z+PwmiWgaUhFWoB8 930pZcqEYGHkKoZ8yXAU7KcNV+FcvTFYdAeW2vMFRnxJ9IzGBPdPjxZEHdNmEA9qfjT8 xc/TOB0Oq4sx1lW3avRCHv4s+JktzTA7hC6CL+iWjI+rDT8El9BVJOxOUcFp4zqhpZMh WYbH4KTji/NIjfbmixVc288lOtcDjVI4FCfQ7GobGDpFsZaCw00aiCZu/0v0ifXQZ6HT GM2a3J8icNIJGsY5D5K3GNuNxKjK9HuoJo1W2vupPqlPaE7rF5rItj/snluDYb7PQ+FB 8O7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733331931; x=1733936731; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=q5oTidsFcBhUfDwsnGkgOdVcoDkcOtAbuYVecZu++VA=; b=nMMOWvL581WoadhfWJOul96QWE9Sl5e5b6wVSMEyn7r6M7GLO2CGJu2cQgx4+wOAdP zECBcAqQlx3OeJxLKarEDDDAP0oj8vnYx7PkmasullPb2wmmUwoaffvNbCaGaUcZMzHq U0ka09/U7uyrgmUlzH1jLMIK1OgPQu5X2Thu8qbPsV7r+B6a1mXSPTX1298HBfZBFEAI eWO8Li4/YA0/LVsqkOBObbo2UIsNq+6GLGPnj+PhCq3pUw+6TnTphSxseLPs+AUNQsnS QtG3DjEQiNiE5DGLJSrfdNvxdxRabB0RaKrc4UzLrwX34AS/ijmcyfy/j2oFztUqdYxS ZZPA== X-Gm-Message-State: AOJu0Yw2LCLU0zqVU2zZLCi1AA0LHYSZq3ZgQ3qRh6TJFD6+Y62VzUbk gy48tBWj9ftsabbURxk6dsmoBGXkEWNngVeVp6rcDXPGakxW6QGzBy1EAGgM X-Gm-Gg: ASbGncvlR06Ecf8G/0PdanfqeKRDEwXG93IiTMfCCxZs92wZoGIIDLZn733d1rpoL2J jvUlbf2/WBNFNkUlF8cJL3EnSWu5lDa5kP6XRiB1a1rPT46U8Gt52B46x4AL45CrD55z7ydfgHN 7hUoFXOv1zYpzKgzEFN8/qlesHGWH/VNHftOGvMEW74GD9B3Jj3FTJZoMd68zQakEczZZeW+/wN ZPIklRrbuikquBjf4a4rXabpp2DC3614JZr0iXGuGZGlcu/6KI6YPSrRBRg1WMn88HpGIubZkMa v6RjvuEnJrGxPN58SY1xRHUosUeVHu/LsJPe3Do= X-Google-Smtp-Source: AGHT+IGv8QBgo2SMICrms78DbAdFk2+EzBXKJ+cxAVG9ZQit0tagXgVQ477Fr6OB825Qxq45WXooRQ== X-Received: by 2002:a2e:a58e:0:b0:2ff:d7e8:bbbc with SMTP id 38308e7fff4ca-30009ce0bacmr62718721fa.27.1733331930792; Wed, 04 Dec 2024 09:05:30 -0800 (PST) Original-Received: from [192.168.1.120] (broadband-37-110-24-126.ip.moscow.rt.ru. [37.110.24.126]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-30009665bf3sm6596871fa.113.2024.12.04.09.05.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Dec 2024 09:05:29 -0800 (PST) Content-Language: ru In-Reply-To: <87h67jcsg6.fsf@gmail.com> Received-SPF: pass client-ip=2a00:1450:4864:20::235; envelope-from=tatsu.takamaro@gmail.com; helo=mail-lj1-x235.google.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 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, HTML_MESSAGE=0.001, NICE_REPLY_A=-0.27, 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-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:148605 Archived-At: Thank you, Robert, it is a complete answer to my first question. And thus maybe to all the others, logically. So, I'll set my new key bindings in .emacs file and I'll be happy with it. P. S. But it's still interestin though why is there such a difference in the description of the *define-keymap* command in the official docs and in the Emacs Pal article. I suppose there must be an exact description for the command in the manual, which is the only true. So are they in Emacs Pal wrong? ср, 04.12.2024 19:40, Robert Pluim пишет: >>>>>> On Wed, 4 Dec 2024 19:37:11 +0300, Tatsu Takamaro said: > Tatsu> Thank you! OK, so once again, am I right that if I just want to set my > Tatsu> own key bindings (not changing all of them, but just some), then it's > Tatsu> better to just use keymap-global-set (anticipated by > Tatsu> keymap-global-unset)? And I may don't care about touching and changing > Tatsu> the default settings? > > Yes. > > Tatsu> And can I be sure that everything is all right when I change the > Tatsu> global keymap, won't I be necessarily have to reinstall Emacs > Tatsu> everytime I do something wrong (if I do...) with the global key > Tatsu> assignment? > > Tatsu> Is it just a matter of the ".emacs" file, and all wiil turn right if I > Tatsu> just zeroize the ".emacs" settings? > > Right. You can always move the .emacs file out of the way, or start > emacs with the "-Q" flag, which will prevent it from loading .emacs > > Tatsu> And if so, I can just have my own settings inside of the ".emacs" > Tatsu> file, and if I go to another computer I can just bring my ".emacs" > Tatsu> file with me and it will work the way I want? And so it means I don't > Tatsu> need a separate keymap file, do I? > > Exactly. Iʼve been carrying my .emacs around for decades over dozens > of machines. > > Robert