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
1answer
70 views

Is it possible to associate minor modes with windows rather than buffers?

Does Emacs have some notion of associating minor modes with windows rather than setting them as "global" or "buffer-local"? For example, in a certain window layout I may wish to have a minor mode ...
1
vote
1answer
681 views

Auto-resize window widths to accomodate line length

What is an easy way to automatically resize a window (height and or width) according to the length / line length of the buffer? Possible behavior: A frame split horizontally with two windows with the ...
3
votes
2answers
863 views

Is there a better way to override opening window in compilation-goto-locus?

I don't like the behavior of compilation-goto-locus (bound to Enter in a *compilation* or *grep* buffer), where it splits the window and jumps to the line in a new window. I prefer the *compilation*/*...
2
votes
1answer
306 views

Always pop window into frames

When I use tuareg I like to have the toplevel in a separate frame, but as soon as I evaluate some code in the original frame the toplevel window reopen in that frame and that's not what I wan't. More ...
1
vote
0answers
232 views

Emacs doesn't understand where the windows are?

This has occurred several times now. I will have an Emacs session (24.5.1, OSX UI version installed via homebrew) running for a while when suddenly it no longer seems to understand how to navigate ...
1
vote
0answers
235 views

Define key chords for windmove

I'm following info found on this link, but cannot get the desired custom key bindings to work for windmove. Basically, I put the following in my .emacs file: (global-set-key (kbd "C-M-<left>") ...
4
votes
1answer
172 views

Customizing ace-window to use letters instead of numbers

ace-window numbers windows for selection by the user (ace-select-window, ace-swap-window, etc.). How can this identification scheme be replaced with alphabetic / alpha-numeric identifiers? The ...
3
votes
0answers
152 views

Save configuration of buffers, buffer positions and windows for later recall

I have different workflows with emacs: for example Python development and LaTeX. When I code some Python I like to have a wider window to have different buffers opened at the same time, plus a repl ...
0
votes
1answer
3k views

Open emacs in new window

When I type emacs it opens it in the terminal window. I wish it to open in it's regular separate window (the color scheme look different in the terminal compared to the separate window). I tried "...
1
vote
1answer
32 views

Construct window with list of keybindings for the Emacs Debugger

I always forget the keybindings for the Emacs debugger. I'd like to have a small window open at the same time the debugger window opens with a list of keybindings (I'm thinking of something that would ...
2
votes
0answers
239 views

ECB - avoid opening new windows

I use Emacs for programming and I have ECB; this package works very well for me except with some commands; the problem arises when a command tries to show its result in another window (e.g. rtags's ...
3
votes
3answers
834 views

How to tell if more than one window is open?

How do I tell if more than one window is open programmatically? (I am looking for an elisp function/snippet or variable I can check) (I want to open a REPL in another other window if one exists, ...
1
vote
1answer
628 views

Define the behaviour of help window?

When I'm looking for documentation or information, I press C-h and then f or k or anything else. Then a help window will pop up. I was wondering if I could configure the help window, that he will ...
3
votes
2answers
915 views

Prevent *org todo* pop-up window from displaying in new frame (dedicated window scenario)

I have the following setup, created through a function I've defined in this reddit post, which states in relevant part: (defun hd/weekly-review () "Organize a series of windows for weekly reviews" ...
4
votes
1answer
895 views

Open file in a specific window

Very similar to this question. I'm using helm-projectile to find files. My Emacs frame is divided in three vertical column windows. In one of the windows I have an open file from the project I'm ...
4
votes
2answers
639 views

Neotree window permanently resizes other windows

I usually have my emacs frame something like this: | | | | <window 1> | <window 2> | | | | When I open neotree, it then looks like this (...
4
votes
1answer
807 views

Auto adjust window width based on number of windows?

If i run C-x 3, when emacs starts up it will split window and creates two windows of equal size like this Now i run C-x 3 again it will split current window into two parts resulting in this ...
2
votes
1answer
324 views

How can I force emacs to never split frames, in particular for compile-goto-error?

I want emacs to always display new buffers in the current frame, but always taking the whole frame, rather than splitting it. I currently have customized display-buffer-alist to the following '(...
1
vote
1answer
410 views

How can I disable the resize grip?

After updating my system my emacs windows have a resize grip in the bottom right corner. Is there a way to get rid of it? The grip does not appear on any other windows. I'm running Ubuntu 14.04.
0
votes
0answers
127 views

Is there a way for a display-buffer-base-action function to know the forthcoming major-mode?

I am writing a mode that implements a persistent horizontal window (very similar to the "persistence compile window" in ECB). While I did study the ECB code it is quite old and endeavored to work ...
6
votes
1answer
113 views

How to determine the line number of the first visible line of a window?

How to determine the line number of the first visible line of a window?
0
votes
0answers
742 views

Avoid creating a new window

Since an emacs upgrade I made a long time ago (or was it when I changed my laptop, or when I changed my Ubuntu release? I can't remember), emacs keeps opening new windows whenever I click into a file ...
8
votes
2answers
4k views

How can I adjust the fixed-width of a Neotree buffer?

Using emacs 24, when I try to use the Neotree package I am having issues with modifying the fixed-width of the window. I believe I have found the responsible chunk of lisp, but changing the value ...
13
votes
2answers
728 views

Change highlight color when window isn't in focus?

I'm using hl-mode as a minor mode for deft. How do I make the highlighted line change color (e.g. to gray) when the deft window isn't the current window, and then back to the default highlight color ...
0
votes
0answers
226 views

Tabs bar (for accessing windows/buffers) as a single, one-line bar

Is there a solution to create and manage window/buffer tabs on a single one-line tabs bar? I tried Elscreen, but it creates an annoying bars all over the buffers.
1
vote
1answer
640 views

How to stop helm deleting vertical split when opening helm buffer?

I have (setq helm-always-two-windows t). When invoking a helm buffer i.e helm-find-files or helm-mini with 2 vertical splits helm deletes the other window in preperation to perform a possible ...
3
votes
1answer
728 views

emacs, geiser, chiken scheme on windows setup help

I want to go through SICP. I installed Geiser and Chiken scheme I set the scheme interpreter to be chiken (setq scheme-program-name "C:/Program Files\ (x86)/Chicken Scheme/bin/csi.exe") Then I run ...
2
votes
3answers
2k views

Replace ugly scroll-bar with vertical line characters

Let's face it, the scroll bars for the graphical emacs are both ugly and, if you're sufficiently experienced, entirely unnecessary. Here's a picture of terminal emacs (which uses the | character to ...
2
votes
1answer
467 views

How do I automatically truncate a growing buffer?

I want to run IPython in emacs for all the emacsy goodness I get, but I'm having a problem getting the buffer to automatically truncate (it gets slow quickly printing large dataframes and such). It ...
36
votes
2answers
7k views

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, ...
3
votes
3answers
392 views

The background color can't fill the buffer completely

I used a theme in emacs 24, but recently, the background color just filled area where characters are instead of the buffer completely. Even though I killed the orignal ~/.emacs, and used command like ...
3
votes
1answer
827 views

Different fonts for different Emacs' windows

Usually I have two windows vertical split layout when using Emacs. I'm curious is it possible to change default font size for one of them? Typically, I use 14 points font height with 80 columns ...
7
votes
1answer
626 views

How to make occur mode select the window of buffer `*Occur*`?

Is it possible to make the occur mode grab the cursor (point)?, right now when I do M-x occur and search anything in a buffer, it will open the new buffer with the findings but the cursor stays in the ...
1
vote
1answer
422 views

Windmove-mode: S-up and S-down becomes text selection instead of switching windows

I enabled windmove by running m-x windmove-default-keybindings. S-left and S-right work as expected when two windows are side by side. However when a frame is splitted vertically, I cannot use S-...
0
votes
1answer
309 views

System Wide Hide/Show Keybinding

In OSX' iTerm, you can instantly show/hide the window by the (default) alt-space keys. How can I configure emacs to have similar functionality? I want to run GUI emacs, and be able to show/hide it on ...
13
votes
1answer
4k views

Open file in new window after searching it with helm

As written in A Package in a league of its own: Helm there's a way to search for a file using Helm decide after searching whether open it in same or other window My question is: How?
4
votes
2answers
371 views

How to move to the end/beginning of the window/screen line?

For example, I got a small window, a long whole line is split into multiple lines, not actually split, but with one arrow at the end of each line of the window, if I use C-e or End key, this will move ...
4
votes
0answers
1k views

When using emacsclient, how can I open the file in the active buffer?

When I open a file with emacsclient without invoking -c, Emacs visits the file in a new buffer in the background while leaving my current window configuration in place. I'd like to change this, e.g. ...
1
vote
0answers
84 views

Add commands after custom LaTeX split window view

I use (setq TeX-view-program-list (quote (("Emacs" "emacsclient -e '(split-window-horizontally 88) 'emacsclient -e '(other-window 1)'; emacsclient %o;")))) (setq TeX-view-program-selection (quote (((...
1
vote
2answers
1k views

Fullscreen with no titlebar and no menubar in MS-Windows

Is there a way to easily switch to no-distractions writing environment in Emacs for MS-Windows? I would prefer to have Emacs started without window titlebar and without menubar and have that without ...
5
votes
1answer
723 views

How kill all hidden (non-visible) buffers?

I looked around to be sure, that none had this issue earlier. Okay, sometimes I'm having too many buffers to manage. So I would like to kill all these buffers, except the buffers that are currently ...
16
votes
2answers
6k views

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 ...
9
votes
0answers
696 views

How to immediately resize the minibuffer window?

Suppose that I have this function, that inserts some stuff into the minibuffer: (defun foobar () (interactive) (minibuffer-with-setup-hook (lambda () (let ((resize-mini-windows t)) ...
2
votes
0answers
376 views

How do I use split-window-sensibly with ediff-setup-windows-plain together?

I want ediff to use split-window-sensibly so it will stack the diffs on top/bottom when the window is narrow, but side-by-side when the window is wide. I'd like to use a single frame instead of the ...
6
votes
2answers
3k views

Neotree open file in split window

Is there a way to open a file from Neotree in a new split window? I want to achive same functionality as Vim NERDTree shortcuts "i" and "s" Or is that the wrong approach?
7
votes
3answers
139 views

`query-replace` leaves potential match to be replaced at bottom of window

If I have a long document that I run query-replace (or any other number of commands) in, as I'm saying y or n to replace that match or not, the current potential item to be replaced is always at the ...
4
votes
1answer
211 views

How to update window-start without calling redisplay?

While debugging swiper I've encountered a situation when the point is changed inside with-selected-window, but window-start isn't updated. This can be annoying, because I need the up-to-date window ...
0
votes
0answers
169 views

Conventional implementation of display-buffer-above-selected

Despite respectable variety of display-buffer-* functions some of them stand out with lack of flexibility, such as display-buffer-at-bottom or display-buffer-below-selected that exist in absence of ...
1
vote
1answer
413 views

Toggling maximize-window in a buffer running ansi-term

I have been using the following function to maximize and unmaximize a window for two years now. (defun toggle-maximize-buffer () "Toggle maximize buffer" (interactive) (if (= 1 (length (window-...
8
votes
2answers
196 views

Window Layout selecter

Is there a package that helps me to choose a predefined layout for an arbitrary number of windows in a frame? I would be perfect if it works in a similar way to the select-layout function in tmux. ...

1
4 5
6
7 8