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: Keybinding to transpose current line with next line Date: Tue, 22 Sep 2020 16:31:04 +0200 Message-ID: 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="26382"; 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 Tue Sep 22 16:35:26 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 1kKjO9-0006j7-4b for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 22 Sep 2020 16:35:25 +0200 Original-Received: from localhost ([::1]:39808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kKjO7-0007yP-SJ for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 22 Sep 2020 10:35:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kKjK3-0007Rf-8u for help-gnu-emacs@gnu.org; Tue, 22 Sep 2020 10:31:11 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:59637) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kKjJz-0007rq-OV for help-gnu-emacs@gnu.org; Tue, 22 Sep 2020 10:31:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1600785064; bh=muwbAy5yJq3k+ONhJcQVC51AFhodQETnmmS5aePFb6w=; h=X-UI-Sender-Class:From:To:Subject:Date; b=Ln21u09NImWUF6ApcjNDHOXu4TfuESAhfu0r7wKTxgbd2TTp21fhNz9dpZu8ttNJg kYwfYi090V1zPY2SyNKh3Y72pgsVWu1W/Nut7vxJg0uIWqsFsNNeZF8ZwX4pVj3I8a 05In533BZtDFO3sj9UJ3kP/BMgJOqUCeBrSadUEs= 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-bs02.server.lan [172.19.170.129]) (via HTTP); Tue, 22 Sep 2020 16:31:04 +0200 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:+V23s+59zkrGKgGANSe87xgIs6ylzjo+/mUyFiE+Zqds1uTIFOIAX0NlKcFkVp0E0wv1Z L0Hyrsfdjhfu+V+PucY3XQvw34BE8+QzMkqvbmlexaYwZXRCrW3dsv4KFpl2ii+YTID4jdGta3k7 iuPuZwR9HAsruUjGzldzi8/LZTBZc3adiCyLUHsYPStu9IAwqqx3/8zq/f2uujknMHhdrJbRlwh6 L+aBagisdhNHLwobHadOJTElhnwuw7TaK5Gb5DS9GMNKomV3emrJX/VaNag2hJxjkgIptdMovuKw Bo= X-UI-Out-Filterresults: notjunk:1;V03:K0:sucMdAaiJ9Q=:X1dMqKWl2RdgfRGeDYhsMH 7sO6MaaZWb+3P2aF/Rm9tJsXy2mc+GBE/1GPlA2iId91+w33hXCQ0CPhUGgIebVHXPK5+58y1 AT+yjVZhVp/sT+y/4pLkSgRxn5ApCAm/RJTZQxQ5n8YLRh9iuSa+QPXjjuUdv9zNIdeR+AYPb 3MGQGMIzo7hKraGllNfMmPZQxpya+cOX88uM96oqj2n9bLkOpI91+FRDvC9fcITmIAhSr0Lqx AAyOMsbJ2Zi0qBgTILA6tPqR6pVuNwwns2tbuLoGb1h27GGmsUiZ/J1odDIrcZOtxUQXfrCu+ 6/he7gJtLsO2IYqtpJtAIYP11ZCFlLI92CdkwtN4f3+rXdK5dbcbPwvHXGjwwRcUhp35ZD31q hGL6di56oVyPK4tvz85hXrT1qz62nhDNw6ckKZiSb1rLQAAqngkiLr3ubgnNjjqLyKA7yiJYS dc59Nd34m8yr0hmHjW/0nMYtSdfr9crzzgsBvJAjuqaztQf0eKDrcULPBOn/B8/tSFF6uJv4n xc/MoTGgeonwa/DIJmdyhpMDU12LzRGb8BV038on1nLazcNa1rDP1XYFDyihleP7vAzKz+sA7 kbU7YDLlUgmkm5lHvBhTZKJ9C9OdDzNFq+nSkiMUJ2xZXrJsHIpUlG0/YCF8u2OhII0XfDLAq XyuBARuZkCS6VE31aWOxtOLFa6e3Kgge17qyt6gYtCqeUxg== Received-SPF: pass client-ip=212.227.15.19; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/22 10:31:04 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, 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-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:124135 Archived-At: I have written the following keybinding to swap lines. If I have the cursor on one line, the command swaps the current line with the previous line. What can I do for the keybinding to swap the current line with the next line, rather than with the previous one. (global-set-key (kbd "C-t l") 'transpose-lines)