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 19:37:11 +0300 Message-ID: <48d40943-c50f-6cfe-21a5-b6ea8a9662c0@gmail.com> References: <87plm7cu05.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="20160"; 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 17:37:45 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 1tIsNl-00057m-Fn for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 04 Dec 2024 17:37:45 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIsNN-0001oT-96; Wed, 04 Dec 2024 11:37:21 -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 1tIsNL-0001nm-CB for help-gnu-emacs@gnu.org; Wed, 04 Dec 2024 11:37:19 -0500 Original-Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tIsNJ-0000yr-Hk for help-gnu-emacs@gnu.org; Wed, 04 Dec 2024 11:37:19 -0500 Original-Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-53e1c3dfbb0so1233584e87.3 for ; Wed, 04 Dec 2024 08:37:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733330235; x=1733935035; 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=hVu8w6XRU724hVruVXTP2cZBxBinEph3TwTNBNcQu5E=; b=TCiU74yXFaCKKI+AbvWpLZA+WRCXfZ2H4Gxvth1aO15aeTfbT7vGILu/OXsBZj4ih7 JKx8VHInNiYDtJDk6YBgJBf5BFhIWFG7SQHuZgvCWYMhi0nIygRsaI7EVSA1vNbLpobL 1hDHo9vc76Nh/Ry8NDWAbUqh0t1Cz/vhatHNqLAhMmm4GOby4IR/KO9bZtDfKJGcaWIw hwieIQIg3vH3TSOp7l2GqjJiNdkTM+btkN15UP4Tq5jKWmpKuaPanUicrQD7jUAcwFf5 o4X9C7ovbbY3zSRXBfwb2G+vF62kycBOoGxtZ4xqMOsOJTqgBP8+iv3UNLAyeO0TZ2Sl QGlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733330235; x=1733935035; 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=hVu8w6XRU724hVruVXTP2cZBxBinEph3TwTNBNcQu5E=; b=m6/tn/AK9zSP+LGojtRlo0ASVBz1YF47jJzKtEZnd+Z0ohyDPmkUGley9DLz9jbQpt X49rRzi/ZZBC/Bt2rJ0fiQHpYosnb31OrduM9HlusBg3VGz+I/F9NadsJBeJGE3kn5bu eKlsPDuKaAOqq/+pXmvgkAcOZ1zCLnOOtjTO8kAhzgDFcPSRcE9NJt3XZsHGjI9w6gAU JDa2PRThUZicjMzcnyWM0usWyp8sTdu6dUL94Yk3rODhJkNaoGYbESCAxvOqH2a/se8k zOIdcpITp7cKwkY1/zVZUBekzcZxn8y/OAu2wFj/glhfRFiETco4vKthHnGszUPwBPYN Yy9g== X-Gm-Message-State: AOJu0Yzgn/cGziGEnGERpaHRr05S4pQSW8dK2c0aOyDRry97mijIzI8s pU4iNPKWzQmPCj7n3SXMS6ZgqE5xaiGbcqg9NNpnNG06MIs3Qona X-Gm-Gg: ASbGncvzVxdH9SFuA1NlqwbynX4EVIgDDyuv0deK/1BdiIuE7nAEY0DgjF34j+J4hia ttp4XgJx/QR4EDMbOVWX9feqeEWM9/ElXzghlGWPP/ZRhGRKB7zDxoo8JcENe4YCMns5HgVvobU jfbEVT1ApJO6bIyAuM/rbvWaJqeTv0cK8IWGdR3NfQMyyF/mdtXXr4QifV5sZSeOJ4NCakxyp++ 0ktenzO5jUOQ6PZte5DduE6lFR8j7gE4lCch4Fr7VYL3jxetDxzr2/cPsdlhve6Y2J7ugYJdXHw SdOpRrbx9HQUmIZ8Yp3xlYGm9lFIpsz7qPvZfcc= X-Google-Smtp-Source: AGHT+IEvrZnlAF2WbOyUYVgDIjOOjTmT41RlH3DF/gKe9Rb7QSOszMwlhJON6FYQAnLmD5UMR3zhPg== X-Received: by 2002:a2e:a554:0:b0:2ff:d49f:dd50 with SMTP id 38308e7fff4ca-30009c6c8acmr44217901fa.30.1733330235117; Wed, 04 Dec 2024 08:37:15 -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-2ffdfc745cdsm19625771fa.88.2024.12.04.08.37.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Dec 2024 08:37:13 -0800 (PST) Content-Language: ru In-Reply-To: <87plm7cu05.fsf@gmail.com> Received-SPF: pass client-ip=2a00:1450:4864:20::12f; envelope-from=tatsu.takamaro@gmail.com; helo=mail-lf1-x12f.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:148602 Archived-At: Thank you! OK, so once again, am I right that if I just want to set my own key bindings (not changing all of them, but just some), then it's better to just use keymap-global-set (anticipated by keymap-global-unset)? And I may don't care about touching and changing the default settings? And can I be sure that everything is all right when I change the global keymap, won't I be necessarily have to reinstall Emacs everytime I do something wrong (if I do...) with the global key assignment? Is it just a matter of the ".emacs" file, and all wiil turn right if I just zeroize the ".emacs" settings? And if so, I can just have my own settings inside of the ".emacs" file, and if I go to another computer I can just bring my ".emacs" file with me and it will work the way I want? And so it means I don't need a separate keymap file, do I? ср, 04.12.2024 19:06, Robert Pluim пишет: >>>>>> On Wed, 4 Dec 2024 18:55:00 +0300, Tatsu Takamaro said: > Tatsu> So, the concrete questions that bother me are as they were in the > Tatsu> original question. Like 1) Is my idea to create an own keymap the best > Tatsu> (or is it OK just to change the defaults)?, 2) What about the > Tatsu> differenced in the approach and the syntax matters, 3) What is the > Tatsu> correct way of creating my keymap. Sould it be inside of the ".emacs" > Tatsu> file or a separate one? What commands should I use? > > If you want to change global bindings, you can do that in the global > map with eg `global-set-key' or `keymap-global-set' in more recent > emacs. Iʼd use the latter, if possible, as the syntax of key sequences > it uses is easier to write. > > Remember: your .emacs is yours, and changing defaults to suit you > (including default bindings) is encouraged. > > Robert