Questions tagged [window]

In Emacs, a window is one part of a frame, displaying one buffer. For questions about operating system windows, see the tag 'frame.

Emacs can split a frame into two or more windows. Multiple windows can display parts of different , or different parts of one buffer.

Note that what most operating systems call a window is called a frame in Emacs. For questions related to operating system windows, see the tag . What Emacs calls a windows is called a pane in some other systems.

For questions about running Emacs on Microsoft's family of operating systems, see .

Multiple always imply multiple windows, because each frame has its own set of windows. Each belongs to one and only one frame. The active window's is highlighted.

Tag questions about with appropriate additional tags to avoid confusion with frames and GUI conventions.

Useful links:

432 questions
123
votes
13 answers

How to switch between windows quickly?

How do I switch between windows quickly? I often have multiple windows open and need to switch between them. Right now, I use C-x o to get to the one I want. Is there a more efficient workflow available for this?
Sibi
  • 3,603
  • 2
  • 22
  • 35
46
votes
3 answers

How to change Emacs windows from vertical split to horizontal split?

Window A ++++++++ Window B Is there a way to switch to Window A : Window B Is there a way to switch view without closing windows?
Nick
  • 4,423
  • 4
  • 24
  • 41
44
votes
2 answers

What's the difference between a buffer, a file, a window, and a frame?

When posing questions on this site, people sometimes talk about "windows" when they mean "frames," and "buffers" or "files" when they mean "windows." So: Q: What is the difference between a buffer, a file, a window, and a frame? (I'm posing this…
Dan
  • 32,584
  • 6
  • 98
  • 168
30
votes
6 answers

Switching between window layouts

When I configure a custom layout and then just need to temporary look into one file fullscreen and once I want that layout back - I need manually to reflow it. I would like a plugin/elisp code to save my layouts and to be able to switch between…
lukas.pukenis
  • 677
  • 6
  • 11
29
votes
1 answer

Synchronized scrolling in two windows

Is there a way to reflect the navigation commands in the current window in another visible window. I have two related LaTeX files displayed in two windows and would like to scroll through them simultaneously to get an overview of the differences. I…
Vamsi
  • 3,916
  • 22
  • 35
27
votes
5 answers

How to Change size of split screen emacs windows?

If I have Emacs split horizontally and on top I'm editing elisp code and on the bottom I am in the shell. By default, Emacs makes the two windows equal in size, but I'd like the shell buffer smaller. I was wondering how I could do that. Original…
programking
  • 7,064
  • 9
  • 41
  • 62
26
votes
5 answers

Hide *compilation* window

It is annoying to see the compilation window appear when it is successful. How to remove that automatically? I want to see it though if it is not successful.
Husain
  • 485
  • 8
  • 12
21
votes
2 answers

Display list of words along bottom of frame?

I'd like to display 3 lists of words on separate lines horizontally along the bottom (although top would work too) of every emacs frame I have open. I've thought of 6 ways to do this, and they all have issues: My first thought was to add a line to…
Joseph Garvin
  • 2,061
  • 8
  • 21
20
votes
4 answers

How to setup default windows at startup?

Every time I open up Emacs I tend to set up 3 windows by doing C-x 3 (split-window-right) and then C-x2 (split-window-below). After that I have to switch to each window to open the files I want to edit. How can I set this to be done…
El Diego Efe
  • 1,601
  • 1
  • 19
  • 24
20
votes
3 answers

Is there a way to change color of active window's fringe?

To better distinguish between focused window and rest that are not I would love to change this window's fringe color. Discovering customize with fringe keyword I found only how to change its bg color without ability to set different colors for…
sandric
  • 1,221
  • 9
  • 19
18
votes
2 answers

When should I use with-eval-after-load in my configuration files?

I went over my configuration files and wanted to do some cleanup. My understanding of with-eval-after-load was that its body would be evaluated right after the related package is loaded. While cleaning up my configurations files and splitting them…
Mathieu Marques
  • 1,953
  • 1
  • 13
  • 30
17
votes
2 answers

Moving the mode line and minibuffer to the top

Is there any way I can move the mode line and the minibuffer from the bottom to the top of the screen? The minibuffer is covered by the previous question How to display the content of minibuffer in the middle of the emacs frame?, so this question is…
Mongus Pong
  • 537
  • 4
  • 14
17
votes
2 answers

How can I prevent a command from using specific windows?

Typically, I have a frame split into four windows, where two at the bottom are dedicated to my *compilation* and *grep* buffers. When browsing compilation errors, next-error will eventually replace my *grep* buffer with one of the target file. How…
piwi
  • 273
  • 1
  • 7
17
votes
3 answers

Quick way to close all but one window, and then revert to previous window setup?

I want to close all my windows but the current one and maximize the frame so I can quickly see everything in the buffer in that one window, and then revert to my previous window setup. How would I go about doing this?
Andrew
  • 541
  • 6
  • 17
16
votes
3 answers

Prefer vertical splits over horizontal ones

There are several questions similar to this one. I have read them all and they don't provide an answer for my scenario. I want emacs to prefer vertical splits (splitting windows into left and right parts) over horizontal ones, even if both…
1
2 3
28 29