How to swap the buffers in 2 windows emacs

前端 未结 8 1412
情深已故
情深已故 2020-12-22 20:51

I am using emacs I find that sometimes I have 2 files separated into 2 windows.

For example: I open 1 file using C-x C-f file1.c RET

and I split t

8条回答
  •  隐瞒了意图╮
    2020-12-22 20:58

    If you have prelude, you can use ace-window with S-w. From there you can do many things listed in their docs.

    You can also start by calling ace-window and then decide to switch the action to delete or swap etc. By default the bindings are:

    x - delete window

    m - swap (move) window

    c - split window fairly, either vertically or horizontally

    v - split window vertically

    b - split window horizontally

    n - select the previous window

    ...

    So it would be S-w m

提交回复
热议问题