From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help Subject: Re: Remapping keys and creating my own keymap \\ too complicated\\ Date: Wed, 04 Dec 2024 17:06:50 +0100 Message-ID: <87plm7cu05.fsf@gmail.com> References: 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="16986"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 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 Wed Dec 04 17:07:37 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 1tIrub-0004L1-0i for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 04 Dec 2024 17:07:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIru6-0004wS-94; Wed, 04 Dec 2024 11:07:08 -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 1tIrtw-0004uZ-HP for help-gnu-emacs@gnu.org; Wed, 04 Dec 2024 11:06:56 -0500 Original-Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tIrtu-0002iV-CL for help-gnu-emacs@gnu.org; Wed, 04 Dec 2024 11:06:55 -0500 Original-Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-434a1833367so6884655e9.1 for ; Wed, 04 Dec 2024 08:06:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733328412; x=1733933212; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date :gmane-reply-to-list:references:in-reply-to:subject:cc:to:from:from :to:cc:subject:date:message-id:reply-to; bh=7Gw1TGopaFsqlKcGi9q2ftfn1KMy9/mp+qoWk/F8Kuc=; b=Ol1A0TiHtJmZ4tczMZmP8AZW0L6MUq3LbzluAve+UqYkeiCklamtmlxwXfDGli2dDm tP9dLjkjxUm/5etbUcnA6vMvITui5gsvmsBNdzJ6/Aakm1VbyLMxPSP8o7BjADD7bug5 fovxHDYbm96YxGxL2CGRgk5Wj/iGpmNxdoM1j+pecysM/UYXDyfPvHqGvU0xylEvoONK qQJtFVI/lU0UFuv8jPG2L4nAZBInQlHVd6L7cAiItNYK837zNCRijqDjaps2DKXufxQh edc1J2DS7STBnn58vm1xsev8KVvk9PUbi5x8Y8jdRQ16+0+jn3sJ5Z+r69ORrJbOYUUq s4AA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733328412; x=1733933212; h=content-transfer-encoding:mime-version:message-id:date :gmane-reply-to-list:references:in-reply-to:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7Gw1TGopaFsqlKcGi9q2ftfn1KMy9/mp+qoWk/F8Kuc=; b=Fbu6GPulIfFPhYefftZUKtJkhnLmWBIViChT+BmMa5v8sEZ0Wc23fTuw8+oj4bd1jn ExNqGeMUwxcdvlPZ8kN8gvq65vGqmsEtCC/YFc5rehlPIzat3S4sQ5qEnOsz6dVz6NOx eRDLASv4S+WYjIEC0hvay5QpfkKf7lIkkBYif8JRiI4ZK+24DKBqM7iYCqkB+sL3CoGM /bH5w0C0noTBVJWZuqlHq3AGX5DmsEAEX8ncYPAdtWzcBw0Pv3q+hVucdy8eFxLJhFde Z5p89dNHlgBLvNmHA1m52SmezeK8H0DaXVJ7imjbvN98aCrVRxj4spmsQLOGN3cFpjxo ONmw== X-Gm-Message-State: AOJu0Yzmt9a/qRRsbdqrZrgnn6EtVPZzfaPeC9aaAPuTW7ydzRg4uF6T /t2xP4NI1Wyxuup4Nt+Hr35/cewixaIxG1M5co/JFU6KOp+ZUowBTcuR6g== X-Gm-Gg: ASbGncsyyaQ2MzcVLAOi7u8rrIEM31X6stVxzNUydb8BFBQhuktOOLAR8gf6RgULnqV HZxFQzAPZ0OiKb1oC2SDIVTVtMGEYLt2+yCsrnKVJzmrfDRkKO4WXsOIsy+TGkxZrgY+jBuvEjB znQo9ttuSvgQNcm35zUM4J0siXWVUY95oiwg/nDqG8VWQm8CxUeYRIxW5h2NYdTx2Rwk33jNbpV ODtqAoBzmvNHCpqHT1byUHRsnTVk+sDPSj//Q== X-Google-Smtp-Source: AGHT+IH7874WCg3VRh5n/Zn72utMFpE8JOKKrEb9p7L8qDFFkGjxEcx+12nV2gnmYitTDYzzxjpaJA== X-Received: by 2002:a05:600c:5123:b0:434:9dcb:2f84 with SMTP id 5b1f17b1804b1-434afb8decdmr228188795e9.2.1733328411628; Wed, 04 Dec 2024 08:06:51 -0800 (PST) Original-Received: from rltb ([2a01:e0a:3f3:fb51:b3e6:15b0:9869:5220]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-385ccd36b80sm18489163f8f.29.2024.12.04.08.06.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 08:06:51 -0800 (PST) In-Reply-To: (Tatsu Takamaro's message of "Wed, 4 Dec 2024 18:55:00 +0300") Gmane-Reply-To-List: yes Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=rpluim@gmail.com; helo=mail-wm1-x32a.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:148600 Archived-At: >>>>> 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 th= e 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 t= he Tatsu> correct way of creating my keymap. Sould it be inside of the ".e= macs" 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=CA=BCd 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 --=20