Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
29 views

Split the emacs screen into 2 windows side-by-side, with a different buffer in each window?

I'm trying to split the Emacs screen into two windows side-by-side (for example, the way that split-window-right does it), but I want a different buffer shown in each side. For example ... (get-buffer-...
HippoMan's user avatar
  • 616
1 vote
0 answers
50 views

How to set the window size of a particular buffer to spawn?

For example, when programming, say I want to open the repl shell for the source file that I'm editing, each time the window size of repl shell buffer occupies half of frame size after spawned. I then ...
Akari's user avatar
  • 43
1 vote
1 answer
47 views

What's an easy way to view a copy of a text buffer as a hexl buffer

I sometimes want to look at the hexl-mode view of a text file buffer in one window and in another window I want to keep the original text view. What's an easy procedure to do so? -- Due to the fact ...
halloleo's user avatar
  • 1,345
1 vote
1 answer
54 views

Burying a buffer shows an already displayed buffer

ISTR that quit-window and bury-buffer made sure that the replacement/newly displayed buffer is not shown in any other window (at least that was my intention when I wrote quit-window many years ago). ...
sds's user avatar
  • 6,124
0 votes
0 answers
24 views

Is it possible to draw internal border boundaries (in a way window-divider-first-pixel draws it)

I use internal-border-width with right-divider-width to add some "light" within the frame and visually separate windows. By setting internal-border (background) and window-divider (...
caseneuve's user avatar
  • 407
0 votes
1 answer
41 views

Window configuration overwritten on minibuffer close

Here's a really nasty Emacs bug that has pained me for a long time. In tab-bar-mode with two tabs open (call them "tab X" and "tab Y,") Open tab X. Do C-f or a similar command ...
firstname gklsodascb's user avatar
0 votes
0 answers
9 views

Emacs (maybe helm?) prefers buffers that aren't visible - how to change this?

When switching buffers, emacs seems to prefer buffers that aren't already visible. For example, normally when I'm editing and switch to another file, when I C-x b, the buffer I was last in is at the ...
John Graham's user avatar
0 votes
1 answer
84 views

Emacs sometimes open window with warnings, how to prevent that? (see screenshot)

When I open a buffer, sometimes the window is getting split and another buffer opens up at side with a warning or message inside it. This is new behaviour. I am not been able to track consistently ...
ReneFroger's user avatar
  • 3,880
0 votes
1 answer
37 views

Calculator App Change default Window Height

I'm quite inexperienced in Emacs and Elisp, but I've already made some good shameful things happen. So I'm able to resize the Calculator App Window Size by setting the calculator-mode window-resize to ...
Tiago Matos's user avatar
0 votes
0 answers
18 views

Gnus: show original article when replying

When I hit r (or f/F/R) in a gnus summary, I get a fullscreen view of the unsent Message. Is there some builtin way to put the new Message buffer in the window that had the Summary buffer, so I can ...
unhammer's user avatar
  • 1,159
0 votes
1 answer
49 views

Switch between 2 windows?

I'm JUST starting out emacs. On the right half of the screen I have the interpreter and on the left half of the screen I have my code. I want to switch between these 2 using keyboard only (shortcuts). ...
Rodolf's user avatar
  • 3
0 votes
0 answers
21 views

Find out what created the window?

dap mode keeps creating unwanted window, I'd like to prevent it but can't find a way I can think of setting a breakpoint on window-creation. But there seems to be a lot of those split window functions....
eugene's user avatar
  • 489
3 votes
1 answer
65 views

Permanent two-horizontal-windows configuration

I want my emacs frame to be permanently split into two (or sometimes 3 - with a different monitor - but let's talk two for now) columns of windows. E.g., C-x 0 and C-x 1 may only affect the windows in ...
sds's user avatar
  • 6,124
0 votes
0 answers
14 views

How can I disable restoring Workgroups for Windows (for Emacs) on startup?

I'm trying to figure out how I can disable the restoring of windows when I start Emacs. I've asked the project, but it seems this project is not maintained anymore. Workgroups for Windows (for Emacs) ...
Jason Hunter's user avatar
2 votes
2 answers
71 views

Distance From the Top Edge of the Window to the Point

Anyway to calculate it? (either in lines or pixels) E.g., +-------------------+ 4| | <- top line 5| | 6| | 7| ■ <- cursor here. | Here it ...
shynur's user avatar
  • 5,318
0 votes
1 answer
87 views

How can I open lsp-find-references using split-window-vertically?

I have new windows be opened in a split-window-horizontally way, but I want this specific lsp-find-references to be opened with split-window-vertically. Is there any way to set this preference for ...
Jason Hunter's user avatar
0 votes
0 answers
23 views

How to make grep buffer replace eshell buffer in current window?

When you grep in eshell, it spawns a grep buffer and displays it in a separate window. I'd like to have it simply display in the same eshell window (replacing the eshell buffer -- same as when you do ...
user129393192's user avatar
0 votes
1 answer
48 views

Window displaying up to a certain column

Would it be possible that for a particular window width, I can automatically adapt the text to show up to a certain column number? If possible not via face attributes but using text-scale-mode at ...
Dilna's user avatar
  • 1
1 vote
1 answer
20 views

ESS with R sessions in different frames

When I have two frames open with different R sessions in each, such as +------------+------------+ +------------------+ | # file.R | | | | | 1+4 | ...
r2evans's user avatar
  • 275
1 vote
1 answer
80 views

Printing margin size of all windows [closed]

I am writing a minor mode that changes the margin width when multiple windows are shown at fullscreen. I would like to list the values of the margin sizes for each window in a frame using elisp code. ...
Dilna's user avatar
  • 1
0 votes
0 answers
16 views

How to get `C-h m` to show its output in the same window?

When I type C-h m in dired mode, it opens in a different window. I'd like it to open in the same. How can I do this? In the future, is there an internal reference for questions like this that is quick ...
cspurposesonly's user avatar
0 votes
1 answer
63 views

How can we customize the font size of the window-number in `ace-window` mode?

The font face of the window labels in ace window seem to have the same size as that of the text in the buffer, which is in general too small for me to allow for quick visual parsing. I was hoping that ...
loonatick's user avatar
  • 217
0 votes
0 answers
104 views

recenter'ing a window that does not display current-buffer

I am facing a recurring problem with recenter in Emacs. Sometimes, when I execute recenter, it doesn't work and I get the following message: recenter'ing a window that does not display current-buffer. ...
Tokubara's user avatar
  • 209
0 votes
0 answers
81 views

How to have transparency in frames, but disable transparency in PDF windows?

Basically what the title said. I like to have some transparency. (got it with following line) (add-to-list 'default-frame-alist '(alpha 95 95)) However, this makes PDF buffers also transparent, which ...
Garid's user avatar
  • 641
0 votes
0 answers
88 views

New windows open below (horizontal split) by default

Before, I used to have that windows would open on the right of my current window for things like M-x man and M-x shell. Now I have that they open below. All I've done is uninstall and reinstall my ...
user129393192's user avatar
0 votes
1 answer
196 views

Which GNU Emacs command resizes visible windows to equal sizes?

tmux has ctrl b, shift e, to equalize pane sizes. Does GNU emacs have similar to equalize window sizes?
digit's user avatar
  • 103
4 votes
0 answers
234 views

Help: delete-other-windows only working from the original window

Overview I'm having trouble understanding from my current config why C-x 1 (i.e., M-x delete-other-windows) does not work when executed from a window in a project that was created as a result of ...
ldeck's user avatar
  • 225
2 votes
1 answer
82 views

Swap 2 Windows Associated by “Follow Mode”

Say a frame is split (by C-x 3) into 2 windows that both display the same buffer. If I enable follow-mode, the left window will always display the content closer to the beginning-of-buffer than the ...
shynur's user avatar
  • 5,318
0 votes
2 answers
186 views

Why does Emacs hold on to a not common sense meaning of the words: frame and window?

Below voluminously explained the context of the question stated in the question title: I have started to use Emacs very intensively some days ago and are still bumping into doing things the wrong way. ...
Claudio's user avatar
  • 475
2 votes
1 answer
31 views

how to get ace-window to do row-major numbering of windows?

I use ace-window, and when I have at least two rows and columns of windows. When I invoke ace-window, it does column-major ordering of the windows: |----------+----------| | | | | ...
Dan Drake's user avatar
  • 625
1 vote
1 answer
30 views

The number of characters in one line is very different from `window-width`

In my environment, I can only enter 130 single-byte characters in one line in the actual buffer while window-width is returning 160. Apparently window-width is returning columns, not characters. Is ...
roomworoof's user avatar
1 vote
1 answer
38 views

Why does other-window-for-scrolling ignores variable other-window-scroll-buffer?

According to the documentation of other-window-for-scrolling we should be able to specify the "other window" by setting the variable other-window-scroll-buffer: other-window-for-scrolling ...
FKG's user avatar
  • 58
1 vote
1 answer
48 views

How can I make a window always show the same file buffer?

How can I force Emacs to keep a certain file in a particular window? For example, if I am editing a LaTeX file and there is a compile error, I want to inspect the error in another window. I ...
user5728491's user avatar
0 votes
2 answers
239 views

emacs command window is too small

When I C-x to show the list of commands, the window of commands is chopped like below how can I make it show the full?
Guldam Kwak's user avatar
1 vote
2 answers
85 views

Window Point Reset After Update

I have a buffer which is updated periodically using run-at-time, and in order to maintain the point in each window I use set-window-point, but I find that in sometimes when something is interrupted ...
C4ffeine Add1ct's user avatar
1 vote
1 answer
80 views

Why I cannot quit the window using `quit-window`?

Say I have two existing files named "file1.el" and "file2.el". Then I perform the following steps: I open a file named "file1.el" C-x C-f a file named "file2.el&...
absuu's user avatar
  • 149
1 vote
0 answers
96 views

How to switch buffers (prev & next) with minimal buffer list order modification?

How to switch buffers (prev & next) with minimal buffer list order modification? To be succinct and without getting into the weeds of particular details, the best way to explain what I am trying ...
David's user avatar
  • 126
5 votes
2 answers
204 views

Display Different Sections of *info* In the Same Session [duplicate]

To read Emacs Lisp Intro, I type C-hi and choose the book.Then I type C-x3 and try to see another section in the right window.But once I choose another section in the right window, the left window ...
shynur's user avatar
  • 5,318
1 vote
1 answer
37 views

How to get `Info-mode`'s text to horizontally fit the window like in the html version?

See images for a comparison. The emacs version line-wraps much before the horizontal space ends. Html version was screenshotted from here
habit's user avatar
  • 143
1 vote
1 answer
217 views

Delete or hide compilation buffer when finished compile and run process

Recently I'm using this function which is given bellow, to compile and run C++ program. Everything works fine with this function. I just want to delete pop-up window (generated by this function) after ...
Likhon BaRoy's user avatar
1 vote
0 answers
17 views

Transfer focus to started asynchronous process

I have the opposite issue from How to avoid losing focus after starting an asynchronous process?. I would like to call start-process and have the resulting window be focused. Specifically, I am ...
xeruf's user avatar
  • 354
1 vote
2 answers
375 views

save a specific layout

I am pretty new to emacs (doom-emacs in this case) and I have an idea of what I want to do, but not sure how to do it. What I am after is that when I open a .js file, I want to split my window into 3. ...
munHunger's user avatar
  • 125
1 vote
1 answer
55 views

How to disable `q` key (quit) for *Geiser Debug* window?

The *Geiser Debug* window disappears after pressing q. This is normally good for dismissing the error messages in the window (for scheme). However, I'd like to keep this window open so that I can see ...
tinlyx's user avatar
  • 1,364
1 vote
0 answers
289 views

Why EAF browser is opening outside emacs buffer?

I'm new to emacs, so excuse any naivety that you might see. These are my sys and emacs config. System Version: macOS 12.5 (21G72) GNU Emacs 28.1 I've tried installing eaf and eaf-browser in emacs, i ...
Question's user avatar
1 vote
1 answer
61 views

How do I automatically reload my agenda views on window/frame resize?

I've noticed that my agenda views get squashed (line breaks) when my window/frame resizes, e.g. when I move the Emacs frame to a smaller monitor. Is there a way/hook to automatically reload my open ...
Chillja's user avatar
  • 13
1 vote
0 answers
83 views

How do I start emacs with two horizontal windows one of which is dired?

How do I write a function and call it in my init script so that when I open a file, I have two horizontal windows, the left one being dired mode and about 25% of the total emacs screen, while the ...
Aaron's user avatar
  • 111
1 vote
1 answer
321 views

Resizing window with text scaling

I often have multiple windows in emacs. I would like to have a function that modifies the width of a window to a certain value, then scales the text such that the longest line in the buffer fits the ...
Dilna's user avatar
  • 1
1 vote
1 answer
68 views

Is there a library to make `'evil-goto-mark` restore the screen position of the marker?

I use emacs and evil. If I set a marker using 'evil-set-marker, scroll elsewhere in the file, and then execute 'evil-goto-mark or 'evil-goto-mark-line, the window will scroll back until the position I’...
emdash's user avatar
  • 86
0 votes
2 answers
357 views

DOOM themes: color face for line that divides buffers

I installed Doom themes on my Emacs. I would like to know how to manually change the color face of the vertical line that divides different buffers. By default it has a dark color not very ...
Emmanuel Goldstein's user avatar
1 vote
1 answer
648 views

How to make :q, in spacemacs' evil mode, kill the buffer and delete the window, but not kill Emacs?

How can I make :q in spacemacs' evil mode, kill the buffer and delete the window, but not kill Emacs? Coming from VI, the habit of closing with :q/:wq or ZZ/ZQ doesn't translate very well into Emacs. ...
Lockszmith's user avatar

1
2 3 4 5
9