From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Igor Newsgroups: gmane.emacs.help Subject: Swap Tab and Escape in all modes including evil Date: Sun, 14 Feb 2021 06:40:25 +1000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="667"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 13 22:42:12 2021 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 1lB2g7-00005Q-Qs for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 13 Feb 2021 22:42:11 +0100 Original-Received: from localhost ([::1]:56802 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lB2g6-0006rz-Ts for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 13 Feb 2021 16:42:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43098) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lB1ia-0006K5-Mi for help-gnu-emacs@gnu.org; Sat, 13 Feb 2021 15:40:42 -0500 Original-Received: from forward105o.mail.yandex.net ([2a02:6b8:0:1a2d::608]:45522) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lB1iW-00046X-MV for help-gnu-emacs@gnu.org; Sat, 13 Feb 2021 15:40:40 -0500 Original-Received: from iva1-12e7d973dd36.qloud-c.yandex.net (iva1-12e7d973dd36.qloud-c.yandex.net [IPv6:2a02:6b8:c0c:928c:0:640:12e7:d973]) by forward105o.mail.yandex.net (Yandex) with ESMTP id C1E8142027D1 for ; Sat, 13 Feb 2021 23:40:28 +0300 (MSK) Original-Received: from iva8-b81aeb0c8234.qloud-c.yandex.net (iva8-b81aeb0c8234.qloud-c.yandex.net [2a02:6b8:c0c:da9:0:640:b81a:eb0c]) by iva1-12e7d973dd36.qloud-c.yandex.net (mxback/Yandex) with ESMTP id Qb48RdVaOT-eSHaLHCa; Sat, 13 Feb 2021 23:40:28 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1613248828; bh=rGoIn9elSpZdC7oeHX9/960Uo8uwhXsSR8aQQbTu0Kc=; h=Subject:From:To:Message-ID:Date; b=fajYj2PCfxWYy5MSlfdPkoJDyA9mflbHMdpmrOpgFx/DRbSMBieIRjW006svUXy/V Sp02vHsDSQ/ZApryigTNKgLHhJ2JN70kgA0lg4vjlTVK7h+tru7kOQD3sEv6opL346 8n9jPxsEkl8ofv5VRXYWhKIM6s/TbUkqW/RwoDQQ= Authentication-Results: iva1-12e7d973dd36.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Original-Received: by iva8-b81aeb0c8234.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id Q1WruKN6hz-eRn4Z32t; Sat, 13 Feb 2021 23:40:27 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Content-Language: en-US Received-SPF: pass client-ip=2a02:6b8:0:1a2d::608; envelope-from=jolly-good-fellow@yandex.ru; helo=forward105o.mail.yandex.net 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, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 13 Feb 2021 16:40:10 -0500 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:127977 Archived-At: Hello. 'Escape' is too far away on modern keyboards and 'Tab' could be easily typed as 'Ctrl+i' in terminal applications and Emacs. So I found it convenient to swap them in terminal key bindings and would like to have them swapped also in Emacs but not in other GUI applications(so xmodmap or xcape is not an option). Is it possible? Or at least is it possible to make 'Tab' act as 'Escape'? I've tried |`(define-key input-decode-map [tab] [?\e])`| But this doesn't trigger insert-to-normal transition in evil mode: I am pressing 'Tab', I am seeing `|ESC ESC ESC`| in bottom bar, but evil state remains ||.||