[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Keybinding to transpose current line with next line
From: |
Francis Belliveau |
Subject: |
Re: Keybinding to transpose current line with next line |
Date: |
Tue, 22 Sep 2020 15:39:36 -0400 |
You could either bind a macro or create a simple elisp function that moves to
the next line first.
It could also move to previous afterward if you feel that it appropriate.
C-n C-t or C-n C-t C-p
> On Sep 22, 2020, at 10:31, Christopher Dimech <dimech@gmx.com> wrote:
>
>
> 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)
>
>
>
- Keybinding to transpose current line with next line, Christopher Dimech, 2020/09/22
- Re: Keybinding to transpose current line with next line, Yuri Khan, 2020/09/22
- Re: Keybinding to transpose current line with next line, Emanuel Berg, 2020/09/22
- Re: Keybinding to transpose current line with next line, Yuri Khan, 2020/09/23
- Re: Keybinding to transpose current line with next line, Emanuel Berg, 2020/09/23
- Re: Keybinding to transpose current line with next line, Marcin Borkowski, 2020/09/23
- Re: Keybinding to transpose current line with next line, Emanuel Berg, 2020/09/23
- Re: Keybinding to transpose current line with next line, Emanuel Berg, 2020/09/23
- Re: Keybinding to transpose current line with next line, Emanuel Berg, 2020/09/23
- Re: Keybinding to transpose current line with next line, Emanuel Berg, 2020/09/23
Re: Keybinding to transpose current line with next line,
Francis Belliveau <=