Questions tagged [frames]

are the graphical system-level “windows” of Emacs. It initially contains one window and normally also contains a menu bar, tool bar, and echo area.

Filter by
Sorted by
Tagged with
92 votes
6 answers
45k views

How to maximize my Emacs frame on start-up?

Is there a way to maximize my window on start-up? Currently, I hit Control++Up on my keyboard but it is very bothersome to do that every time. I am using Emacs 24.4 on Ubuntu 12.04.
programking's user avatar
  • 7,194
45 votes
2 answers
10k 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, ...
Dan's user avatar
  • 33k
31 votes
6 answers
10k views

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 ...
lukas.pukenis's user avatar
28 votes
2 answers
8k views

How to change the frame title from `emacs@host` to visited file name

I am using Emacs 24.5.1 on OpenSUSE Tumbleweed, with Gnome 3.16, and the title of the GTK window with Emacs in it is always emacs@hostname. How can I change it to the name of the current file I'm ...
Sean's user avatar
  • 383
27 votes
3 answers
845 views

How can I print an Emacs frame?

The function ps-print-buffer-with-faces prints an Emacs buffer. Is there a way to print a frame with more than one buffer in it? I would like to print an Emacs calc frame both with the RPN stack and ...
The Dude's user avatar
  • 473
21 votes
4 answers
6k views

Different themes for terminal and graphical frames when using Emacs daemon

I'm trying to achieve the following behavior in Emacs24: I like to use a different theme (solarized-dark vs. solarized-light) depending on whether I connect to the running server with a terminal ...
andreas-h's user avatar
  • 1,559
21 votes
2 answers
433 views

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 ...
Joseph Garvin's user avatar
18 votes
3 answers
3k views

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 ...
Andrew's user avatar
  • 561
18 votes
2 answers
6k views

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 ...
Mongus Pong's user avatar
18 votes
2 answers
2k views

Can you activate/(bring to front) emacs using native elisp? (e.g when working in another program)

I want to force emacs to be activated, be bought to frond and 'steal' focus in certain circumstances. E.g when I finish a org-Pomodoro or during an important appointment reminder. Now, I'm looking ...
Leo Ufimtsev's user avatar
  • 4,558
17 votes
2 answers
18k views

How to toggle fullscreen in Emacs GUI mode (`Full Screen` option is greyed out in Kubuntu)?

This is such a basic question but I am really at a loss (a google search only revealed solutions for OS X). Until recently, I primarily used terminal mode (which I can make full-screen using my ...
iceman's user avatar
  • 1,088
17 votes
1 answer
809 views

Never create frame in ediff

In general, I dislike frames. Right now, I'm using (setq ediff-window-setup-function #'ediff-setup-windows-plain) To ensure that ediff does not create a frame when it starts. However, certain ...
PythonNut's user avatar
  • 10.4k
16 votes
4 answers
3k views

Run a Function Only Once, Though a Hook Many Times

The context I'm using the after-make-frame-functions hook to load properly the themes in an emacs client/server configuration. Specifically this is the code snippet that I use to make that (based in ...
joe di castro's user avatar
16 votes
1 answer
2k views

How can I block a frame from being split?

Currently I work with ruby and rspec. I really like the idea of having a separate frame in another monitor showing me the compilation buffer. My current setup uses a 'code' frame (in which I do actual ...
Renan Ranelli's user avatar
14 votes
2 answers
1k views

"Pop" a window into a frame

Often, I my windows get automatically split until I arbitrarily decide that the current frame does not have enough real-estate for them all. When this occurs, I manually delete a window, create a ...
PythonNut's user avatar
  • 10.4k
14 votes
3 answers
6k views

How i can open shell in current buffer?

In function "shell" this line display shell buffer and almost always its open new shell in random frame. And I have to swap the buffers, it's annoying. ... (pop-to-buffer buffer) ... In docs says: ...
Honnisha's user avatar
  • 163
14 votes
2 answers
3k views

Make emacsclient create a frame only if there isn't one already

How can I make emacsclient -a '' -n create a new frame only if there isn't one already? The problem with the -c flag is that it creates a new frame every time. The problem without it is that if there ...
spelufo's user avatar
  • 303
14 votes
1 answer
1k views

When switching buffers, prevent emacs from automatically switching frame

When I switch buffers, emacs will switch to an existing frame if the buffer is already opened there. I found how to prevent that when switching with ido using : (setq ido-default-buffer-method '...
MonsieurBanana's user avatar
13 votes
1 answer
3k views

How to count all of the windows in a frame?

Just as the question stated, I would like a function that would count of the windows that are currently being shown in that frame. So this: +--------------+-------------+ | | ...
programking's user avatar
  • 7,194
13 votes
3 answers
5k views

Disable scrollbar on new frame

I would like to make sure that scrollbars never show up on my windows, but I recently noticed that when I created a new frame with C-x 5 2 the new frame gets a scrollbar, even though the original ...
Ryan's user avatar
  • 4,049
13 votes
3 answers
2k views

Kill buffer when frame is deleted

When I close a frame, I'd like for its buffer to be killed. If the buffer is displayed in other frames, the buffer should not be killed. Do nothing if more than one buffer is displayed in a frame. ...
dharmatech's user avatar
  • 1,262
12 votes
3 answers
12k views

Is there a transparent theme?

I've been looking for themes which are transparent, but I didn't find any. Is there someone who uses a transparent theme?
Vivian Maya's user avatar
11 votes
6 answers
17k views

How do I get my initial frame to be the desired size?

I have the following in my .emacs file: (when window-system (set-frame-position (selected-frame) 0 0) (set-frame-size (selected-frame) 91 63)) The value of 63 is supposed to make my ...
b4hand's user avatar
  • 2,025
11 votes
2 answers
3k views

Single mode line for all windows

Is it possible to have only one mode line (sometimes referred as "statusbar") for all windows? I'd like to make this single mode line show information about the currently selected buffer.
rgtk's user avatar
  • 414
11 votes
1 answer
2k views

how to make emacs prompt me before closing the last emacs gui frame when running emacs as a daemon?

I know that if I set: (setq confirm-kill-emacs 'y-or-n-p) Emacs prompts me before I kill it. But I want emacs to prompt me before I close my last gui frame (prompting me before killing any frame ...
ninrod's user avatar
  • 1,506
11 votes
1 answer
361 views

Configuring Emacs and especially undo-tree-mode for tiling window managers

I want to use Emacs in a frame-oriented fashion and let my tiling window manager handle buffer organization. For example, following this tutorial. By default, Emacs packages such as undo-tree-mode ...
wdkrnls's user avatar
  • 3,707
11 votes
2 answers
404 views

Prevent mouse click in inactive frames from reposistioning point

I want to prevent the "first" click on a frame in an inactive X window from having any effect, other than to make the frame active. Specifically, I don't want it to reposition point. The problem is ...
edam's user avatar
  • 311
10 votes
2 answers
5k views

How to set emacs frame size by pixels

I can resize the emacs frame to whatever size by mouse, is there a way that the frame size be set in init.el by pixels? Or anything similar in the window manager?
godblessfq's user avatar
  • 1,217
10 votes
6 answers
3k views

Open the same file in two frames

With long files, I like to have two buffers that display the same file but at different positions. However, since I have two physical displays, I'd like to have two Emacs buffer, each on its own ...
wvxvw's user avatar
  • 11.4k
10 votes
1 answer
1k views

Why emacsclient say to quit with C-x 5 0?

As soon as I open emacsclient I found the following message in the minibuffer: When done with this frame, type C-x 5 0, I find it strange that it advices how to close the frame with delete-frame, any ...
marcanuy's user avatar
  • 818
9 votes
2 answers
2k views

Running Emacs from Windows taskbar

When I want to switch between programs in Windows, I ordinarily use the windows key plus a number key to run a program from my taskbar. Most programs will either start running or, if there's already ...
resueman's user avatar
  • 401
9 votes
3 answers
4k views

How to use "o" to open from dired/ibuffer into another frame

I have two windows open and split vertically (single frame): A) contains my work B) contains either dired or ibuffer. I would like to be able to navigate to a file/buffer in pane B and hit "o" ...
Robert's user avatar
  • 99
9 votes
2 answers
1k views

Determine whether a frame is shown on primary display

I have a multi-monitor setup, in which a specific monitor has a dedicated Emacs frame in full screen which shows compiler errors (from Compilation Mode or SBT Mode). I'd like to preserve the setup ...
user avatar
9 votes
1 answer
2k views

desktop-save-mode fails to save window layout

I use Emacs 24.5.1 on OS X in terminal mode. I intend to use desktop-save-mode to save and restore window layout (i.e. positions of buffer windows) upon exiting and starting Emacs. From this answer ...
skyork's user avatar
  • 231
9 votes
2 answers
2k views

How can I prevent gdb *input/output* buffer from aggressively popping up in frame?

When using gdb with M-x gdb, the *input/output* buffer always pops up aggressively in any frame which has focus and isn't already displaying it. I would like the *input/output* buffer to stay quietly ...
ajp's user avatar
  • 393
9 votes
2 answers
539 views

Split Window at outermost border

I'm looking for a way to add a new full-height window split to an existing (splitted) window configuration. Because I don't know how to explain it properly I'll just post some ASCII graphics showing ...
elemakil's user avatar
  • 2,527
8 votes
1 answer
3k views

How to prevent emacsclient starting a new frame every time?

I have Ubuntu 12.04 running with Emacs 24.3. On computer startup, emacs --daemon is executed, and I have modified the emacs24.desktop to take emacsclient -c -a "" as exec parameter. However, whenever ...
strNOcat's user avatar
  • 211
8 votes
4 answers
1k views

press keystroke sequence with elisp

I just installed debian 8 and emacs24. I noticed a new feature! you now can push F11 to enter fullscreen mode. I wanted to put emacs on fullscreen mode at startup, but couldn't find the command... and ...
Bengalaa's user avatar
8 votes
0 answers
573 views

How can I force display-buffer to use one specific frame?

My daily workflow uses multiple frames, and I have a frame that I want to dedicate to ERC buffers. I've used set-frame-parameter to give the frame the name *ERC*. I want display-buffer to always ...
purple_arrows's user avatar
7 votes
2 answers
2k views

How can I pin the *compilation* buffer to never leave a single frame/window

I would prefer to have the *compilation* buffer always stay in its own frame. However, currently if I run M-x compile from another frame/window, the buffer pops up in a new window there as well. How ...
ajp's user avatar
  • 393
7 votes
1 answer
6k views

Get a reference for the current frame

frame-list returns a list of references for live Emacs frames. How does one get a reference for the current Emacs frame? I have been unable to find an appropriate function. Current could be either (...
ebpa's user avatar
  • 7,479
7 votes
3 answers
1k views

Show file names with the full path in the frame title

I want to set the frame title as follows: When the current buffer is visiting a file, show the full path name and the Emacs version. When the current buffer has no file, then show the buffer name and ...
a_subscriber's user avatar
  • 4,074
7 votes
3 answers
828 views

Focus-hook: attenuate colours when losing focus

How can I use the focus hooks to attenuate all colours in visible buffers when the Emacs frame loses focus? I tried using the following code: (set-frame-parameter (selected-frame) 'alpha '(100 80)) ...
user avatar
7 votes
2 answers
6k views

How quick switch between frames?

windows 10, emacs 26.1 I open 4 frames. How I can quick switch between them? I need smt like this: C-1 -> switch to frame#1 C-2 -> switch to frame#2 and so on. I use ace-window but it not very ...
a_subscriber's user avatar
  • 4,074
7 votes
1 answer
2k views

How do I create a borderless frame?

That is, how can I (from Lisp) create a frame similar to the one that x_create_tip_frame (called by x-show-tip in the C sources) creates when x-gtk-use-system-tooltips is nil? My original guess was ...
Clément's user avatar
  • 3,985
7 votes
1 answer
1k views

How to set up Emacs to never split windows?

I want to try a new workflow where split windows only happen if I request them, otherwise Emacs simply changes windows. I tried putting this command in my init.el: (setq pop-up-windows nil) And it ...
gnuvince's user avatar
  • 261
6 votes
4 answers
7k views

Switch to a neighboring frame?

How can I move focus from currently focused frame to a neighboring frame-- e.g. right next frame-- via a keyboard shortcut? I'd like to cycle through frames in "z" direction. If I had frames a to h ...
stacko's user avatar
  • 1,597
6 votes
2 answers
2k views

How can I kill all unmodified buffers / files and delete their related frames?

How can I close all unmodified buffers? Usually after a day of work - I've got a ton of buffers / frames open. Right now I have to navigate to each frame and close it - which then prompts me if the ...
Chris Stryczynski's user avatar
6 votes
2 answers
5k 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?
DalekSall's user avatar
  • 333
6 votes
3 answers
3k views

resize Emacs (GUI) window to exactly half the screen?

When I maximize the Emacs frame, it uses the full width of the screen, no background showing. But if I e.g. snap-to-edge (in XFCE), it shows a little "margin" of background outside the frame. And if I ...
unhammer's user avatar
  • 1,159

1
2 3 4 5
8