We’re rewarding the question askers & reputations are being recalculated! Read more.

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
6
votes
2answers
2k 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?
16
votes
2answers
4k views

How to change the title from emacs@host to 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 ...
3
votes
1answer
559 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
261 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 '(...
8
votes
3answers
2k 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" ...
0
votes
0answers
232 views

OS X: make Emacs frame the frontmost window-manager window, but not the “key window”

(progn (sleep-for 5) (x-focus-frame nil)) focuses the Emacs frame, but also makes it the "key window" (ie, when you type, the keypresses gets sent to this window, which may or may not be the ...
0
votes
0answers
574 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 ...
6
votes
1answer
500 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 ...
0
votes
0answers
191 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
521 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
528 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 ...
28
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
226 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
833 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
1k 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
230 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
913 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
656 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
100 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
167 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
337 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
429 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
484 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
831 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
207 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
134 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
192 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
295 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
493 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
495 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
644 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
808 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
730 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
94 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
698 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
121 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
834 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
300 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
277 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
115 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
263 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 ...