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
0
votes
0answers
183 views

iTerm2 style fullscreen on OSX

iTerm2 has the ability to use "old-school" (non-Lion) style fullscreen. Emacs can do this too: (setq ns-use-native-fullscreen nil). iTerm2, however, allows you to keep the native OSX menu bar (the one ...
5
votes
1answer
497 views

Replacing display-buffer-reuse-frames

display-buffer-reuse-frames tells Emacs to re-use frames for displaying buffers. However, as of 24.3 this variable is obsolete (emphasis mine): display-buffer-reuse-frames is a variable defined ...
4
votes
0answers
513 views

Emacs frame disappearing

I have an odd intermittent problem with Emacs disappearing from view. I haven't quite figured out the trigger for this. It doesn't happen often and I can't reproduce it on purpose. Sometimes it ...
27
votes
2answers
5k 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, ...
6
votes
4answers
211 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 ...
5
votes
3answers
794 views

something like delete-frame but that would also delete the last frame — like alt+f4

I would like a more handy shortcut to basically the system's alt-f4 to close the current emacs window. delete-frame is not far from that, but it refuses to close the last frame: Attempt to delete the ...
11
votes
2answers
978 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 ...
11
votes
2answers
224 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 ...
6
votes
1answer
46 views

Find the last selected frame on a given display

I want to know which frame on a given X11 display was most recently selected. In fact, I want to know which frame that is mapped on the current desktop was most recently selected. I can tell what ...
1
vote
2answers
866 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 ...
28
votes
3answers
652 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 ...
3
votes
0answers
97 views

Emacs frames can't cover the screen's height

I am using these commands in order to customize the height and the width of the Emacs frames when it starts: (add-to-list 'default-frame-alist '(height . 50)) (add-to-list 'default-frame-alist '(...
5
votes
2answers
2k 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?
3
votes
2answers
163 views

Frame position change using elisp not sticking

Issue I am able to change the frame position using set-frame-position. But the moment I use a function which uses read-from-minibuffer, the frame restores its position to where it was set using the ...
3
votes
1answer
331 views

From File Manager, open file in specific instance of Emacs

Here's my intended use case: Emacs Instance 1: I have an emacs instance containing open buffers of the project I'm working on. All directly related. Emacs Instance 2: I'm in the Windows explorer, ...
0
votes
1answer
414 views

Graphical Glitch/Screen Tearing in Emacs

I'm currently having difficulty with a graphical glitch in Emacs 24.4.1. Occasionally all the text in my current frame will tear, and I'll have to force Windows to redraw everything by covering up the ...
4
votes
1answer
482 views

Add window to the right of two horizontally split windows

Following scenario: 1) I start emacs and the initial frame is as follow: +---------------+ | | | | | | | | | | +---------------+ ...
16
votes
2answers
813 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 ...
2
votes
1answer
198 views

dired-dwim-target for frames?

I exclusively use frames and I've long wondered if there's a way to get dired-dwim-target to suggest a dired buffer from another frame instead of just another window.
1
vote
1answer
133 views

How to hide/show graphical emacs?

I'm writing a screen-shot making function, something like org-screenshot.el link but with my own percs. I'm looking for a way to hide emacs while the screenshot is taking place and show it up again ...
5
votes
1answer
189 views

Limiting theme to frame (for emacs 24 themes)?

Is it possible to have separate theme for every emacs frame (for new, emacs 24, themes)? For old themes, there was color-theme-is-global, but I can't find anything similar for new themes...
4
votes
2answers
286 views

Open new emacs frame that steals focus from other apps?

I have this notification system in emacs that opens a new buffer with a reminder and relevant info at specified times. However, if I am using my browser I can't see it. Therefore I am wondering ...
9
votes
2answers
1k 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.
2
votes
2answers
478 views

How to update frame-title-format and also the current frame title?

I am developing an Emacs package that applies when Emacs is used as a server. It should set the frame title when activated, and also when receiving certain commands from Emacsclient. The package adds ...
5
votes
0answers
483 views

How to set window size programmatically (and without guesswork)?

When searching for how to set an Emacs window size programmatically, all I can find are recipes that include statements like (add-to-list 'default-frame-alist (cons 'height (/ (- (x-display-...
4
votes
2answers
1k views

How to prevent window split in a single frame

I'm in emacs 24.something on a Windows platform. I have an agenda generated by org that I would like to keep on continuous display. I use multiple frames, and multiple windows per frame, for my other ...
3
votes
1answer
602 views

Specify name on emacsclient first frame

I would like an emacsclient frame with a specific name to open when I log into my computer. I tried adding emacsclient -e '(select-frame (make-frame (quote ((name . "scratchemacsframe")))))' to my ...
4
votes
1answer
1k views

Managing multiple windows and buffers?

Is there a good way to manage multiple windows in a large frame? I usually have one large frame, split into many windows, and I find that when I (or some command) visits a buffer, the choice of ...
3
votes
1answer
787 views

Run command in new frame

I'm managing workspaces by creating new frames, but running C-x 5 C-h couldn't find anything like "run command in new frame", basically what I'd like to do is to run some REPL or shell in new frame. ...
13
votes
2answers
719 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 ...
7
votes
2answers
3k 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
92 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
669 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
113 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
795 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 ...
3
votes
0answers
296 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
291 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
90 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
269 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
113 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
250 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
300 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
267 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
914 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: +--------------+-------------+ | | ...
13
votes
3answers
1k 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 ...
62
votes
6answers
23k 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
488 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
731 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. ...