From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Changing Key Mappings Date: Mon, 12 Oct 2020 21:25:33 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36093"; mail-complaints-to="usenet@ciao.gmane.io" To: Help Gnu Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 12 21:27:34 2020 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 1kS3Tq-0009Ii-1l for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 12 Oct 2020 21:27:34 +0200 Original-Received: from localhost ([::1]:35764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kS3To-0008EH-TT for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 12 Oct 2020 15:27:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51302) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kS3Rz-0008E3-LR for help-gnu-emacs@gnu.org; Mon, 12 Oct 2020 15:25:39 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:33105) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kS3Rx-0002vF-IT for help-gnu-emacs@gnu.org; Mon, 12 Oct 2020 15:25:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1602530734; bh=Jor+15hY4ctEPGs/G89xrN0YoFxCPpbZ/JNQOPHj7y4=; h=X-UI-Sender-Class:From:To:Subject:Date; b=le/OL1ag66xAkRdXfEJFXITgKv+sCMtMrpeTx8xziJ8ynwbZf5oOrtd+PyYqmZ1OL G+X0UtGfuZVfNUbYEOMafI1wi9b5w0SUFw1S4j64f5ilrN+nFLedEpBhDdjbenE7Rz 6y6pt3UCm/491SoIYyhMdsv4VAnnTkmU2dyN0SZA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs10.server.lan [172.19.170.178]) (via HTTP); Mon, 12 Oct 2020 21:25:33 +0200 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:vCunQSkqZBdsazTRBV+c70Bc5hBisUPsns5H/oFAEFGIFKhsU7DEm0rdYEfmD8017NcEs oS1zAwPDWxioIl702ADnBG+kGXgEIsJ9n5ToSXxvr0Ef87blwKNtnNFTid8TSSc2GQN1CD/Skj6A DSqmsDXuAirEUgNxaPtctXvA2bn4HzrV/jxAjAcyXT6PJfRKN31GL9VSqo5dJD25S1xBxN6rx6K/ 298ZnHjSyj2T+kNyM5lbXaAS7Sm1LH7OyvIjkUaLGk7iWMOK+O/FwqKEIA8e2rnjW4mG/WbBdYMU NI= X-UI-Out-Filterresults: notjunk:1;V03:K0:sHu4t3K91Hs=:s+YyxsYrYhOfqKiYZOTlFk FpbVbfe0Jj/CCRY/jiY+xF59a5QPf3DJ02fLoiJuR+JI867VlDTGQYcUPIgHflJ8bWsuCW/Sz hibNQIyam4YdHRYh84vydO2duL78MQkx5K4CSL398GNpJQF513xXkWjrk5arq9nSBz5DUmqHm oBOXNyIACgl/CP3eWAZ1lAoMD3mTbhXcD8WTUzUMrf/Y4PmRqfTx12/cgGMBMTrCb/N34k1zu 3jpWTS5/pYIyGjBLPd+4gDsFKg7RiU14tvTgroWdmTiph4b75RrVdqMa+mr//B/NwuqW5Ew+v gz1OL5wPU1U07LDhgmgg52uRmdBtoB1c1gJr/Wftk1xSIl/YDefNrrx7Gg9QwBJzunamM87A4 dABUG22LucDkqLDRrNdbil5ep4q1N16uaDJ493Raaviw1ngJLE6GF6+SGgAYfdgkQGJX5IiHB 3KriKmkyPRVw4vUQF7eqM28+ZTjXR/rSqqhZFgx5eBbbqc4OAmPo8KOAheGGgKXDYFa1GQYdc 7P2Xq/KgwhW3UibD9soxpFrMWCjVHaOM+NGDNet6On0ORnKDZ8Mi4EaTDq1thbJbq9ZMN0iSe XrJDuMbou5IIIyilDDMH95JbLYaPOJZdHPUZ0WbACAOPa1vJvu1yBvSigqeAZAxr7JqpB3iuo lkJXtm0tjqrEtbBFQIq1PV2PAA78gDEsALUJqB2HVW2F24XhnWScafrCzZFaD/bPR1CE= Received-SPF: pass client-ip=212.227.15.15; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/12 15:25:34 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.help:124442 Archived-At: I have changed my key-mappings to 1. Map the Hyper Key in place of the Super Key 2. Interchange the Ctrl Key with the Alt and Meta Key After writing the re-mapping commands in the file Xmodmap and running it through the xmodmap program using 'xmodmap Xmodmap' , I have tested my new key-bindings in Emacs and are working as expected. I used to think that all the 'clear', 'keycode', and 'add' commands have to be grouped together. I think that was a mistake in my thinking cat Xmodmap ! ======================================================================= ! Using the Hyper Key in place of the Super Key ! ======================================================================= clear mod4 keycode 133 = Hyper_L NoSymbol Hyper_L keycode 134 = Hyper_L NoSymbol Hyper_L keycode 207 = NoSymbol Super_R NoSymbol Super_R add mod3 = Super_L Super_R add mod4 = Hyper_L ! ======================================================================= ! Interchanging the Ctrl Key with the Alt Key and Meta Key ! ======================================================================= clear control clear mod1 keycode 37 = Alt_L Meta_L Alt_L Meta_L keycode 64 = Control_L NoSymbol Control_L add control = Control_L Control_R add mod1 = Alt_L Meta_L