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
13
votes
2answers
772 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 ...
4
votes
2answers
112 views

What's the best API to use to interrogate the size of the underlying window system?

I'm currently working on using the crouton xiwi X windows target to run an Emacs session on a Chromebook. I've done this by starting Emacs as the last entry in .xinitrc making it effectively the ...
8
votes
2answers
4k 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?
4
votes
1answer
97 views

Force twittering-mode links to always open in a specific frame?

My (simplified) setup: one frame for twittering-mode and another for w3m, among others, all inside tmux. While in the twittering-mode frame, C-m on a link does one of two things. Sometimes, the link ...
7
votes
1answer
748 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 ...
2
votes
1answer
129 views

Reloading files from disk in frame with emacsclient

This may be user error, but if I open a file with emacsclient -c file.tex then if I try to reload the file using C-x C-v, then I get the usual Find alternate file: but if I press enter on that, I ...
3
votes
3answers
906 views

Open buffer in a specified frame

Do frames in emacs have a handle the way buffers do? In particular, can I specify that a particular file should be opened in a specified frame? I would like to have two frames where I use one for ...
4
votes
0answers
309 views

Restore desktop frames for Emacs server

The version of desktop.el that comes with Emacs 24.4 allows restoring frames as well as windows and buffers. This works fine for an Emacs server (i.e., daemon) with at least one open frame. However, a ...
20
votes
2answers
312 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 ...
1
vote
1answer
91 views

How do I modify a frame once it's created?

I want to manipulate a frame after it's created. I thought that I could do this with an 'after-make-frame-functions hook as a callback but it seems to return too early. This is the sample code that ...
3
votes
1answer
284 views

How to force emacs to open a file always as a new frame rather than a new window

Assume that I have already opened a file with emacs. Is it possible to force emacs to re-open that file in another frame when I re-open that file intentionally or a third party program open that file ...
1
vote
2answers
118 views

How disable “unexpected” scrolling behavior in small frames

I find the way that the cursor scrolls in small frames unintuitive. When I press C-p I expect the cursor to move up a line. Instead, in the org-mode file below, right before the cursor gets to the #+...
2
votes
1answer
278 views

Centering text in emacs window is unresponsive

On this site i found a very nice snippet of code to center a textblock of fixed width in my frame https://stackoverflow.com/a/23731757/4310112 The idea is that whenever the window size is change, the ...
1
vote
1answer
318 views

Starting SLIME in a pop-up frame

Whenever I currently do M-x slime, it creates a split buffer, with SLIME going in the bottom half. This is not really very desirable - I'd much rather SLIME appeared in a separate frame, and kept its ...
4
votes
1answer
275 views

How can I rotate window configurations among frames?

At work, I have a dual-monitor setup and, naturally, both of them are fullscreened to emacs. I have bindings to switch between the two frames with other-frame, but sometimes I just want particular ...
13
votes
1answer
957 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 '...
10
votes
1answer
2k 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: +--------------+-------------+ | | ...
15
votes
3answers
2k views

Is there any way to run a hook function only once?

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 ...
71
votes
6answers
26k 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.
6
votes
3answers
546 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)) ...
12
votes
3answers
818 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. ...
24
votes
6answers
6k 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 ...
12
votes
2answers
3k 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 ...
6
votes
2answers
183 views

Open edit-server files from emacsclient in a specific frame

Is there a way to designate a specific frame in which files opened with emacsclient will appear? I have one monitor that is dedicated to a fullscreen Emacs frame. I do most of my editing in that ...
16
votes
2answers
12k 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 ...
7
votes
6answers
8k 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 initial ...
8
votes
2answers
1k 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 ...
20
votes
3answers
4k 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 ...
1
vote
2answers
497 views

Unable to load color “color-235” when using `gruvbox` theme

I have the following line in my .emacs to load the gruvbox theme: (load-theme 'gruvbox t) When opening Emacs, I get the following error Unable to load color "color-235" However, when I call load-...
3
votes
1answer
582 views

How to better control Emacs buffers in StumpWM?

I have been using Emacs more and more, to the point that I would like to start using StumpWM as my default window manager with it, so that I can integrate the missing bits of my workflow that ...
5
votes
3answers
435 views

Cycle between windows in all frames

I currently use the following custom command to navigate between windows and frames: (defun nispio/other-window (&optional arg) "With prefix argument, select the next frame. Otherwise, select ...
8
votes
2answers
342 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 ...
4
votes
3answers
108 views

Inconsistent point when inserting into a buffer that is visible in another frame

While working on a sort of "background processing" function, I noticed that my logs would print backwards if the buffer was in another frame. I cannot seem to figure out why it is happening. I am not ...
4
votes
2answers
603 views

Turn off jabber notifications when Emacs has focus

I use jabber.el to communicate with people at work, and I have sound notifications setup so that I get notified even when I’m not using Emacs. The notification is setup in the following way. (add-...
8
votes
1answer
2k 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 ...
16
votes
1answer
1k 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 ...
11
votes
1answer
254 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 ...
4
votes
4answers
725 views

Per Frame Buffers

How to make buffers accessible only from one frame(window) and not accessible from another and vice versa? So I want to have each frame with its own buffers. I'm on OS X.

1 2 3 4 5 6