2

I have 3 windows opened and I want to change which buffers they display.

For example: when programming in C, I want to have the C code on the left, and the right side split into two windows showing gdb and the locals variables. If I open them in order, Emacs puts the buffers in a layout I'm not comfortable with.

How can I arrange which buffers are in which windows? Can I do it without using non-built-in packages?

1

The ace-window package provides a function ace-swap-window that provides a nice interface for this. When you call the command each window gets a letter label. Type that letter and it will swap the buffers in the current window and the selected window. Variations allow you to select or delete different windows as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.