The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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

How to re-evaluate transparency when frame-alpha-lower-limit changes?

I configured emacs to be slightly transparent in my init.el (set-frame-parameter (selected-frame) 'alpha '(97 . 85)) (add-to-list 'default-frame-alist '(alpha . (97 . 85))) I wanted to be able to ...
1
vote
0answers
60 views

How to trigger function on particularly named buffer creation?

How does one trigger a function to run when a buffer of a particular name is created? My use case is connecting to freenode with ERC for Emacs related channels. I manually call a function to create a ...
5
votes
2answers
464 views

Can Emacs provide a wide scrollbar (birds-eye view) of code?

Microsoft Visual Studio has a very useful wide scrollbar where you get to see the whole file scaled so it fits vertically. Is there a way to do this in Emacs? I've looked into having a 2nd frame and ...
0
votes
0answers
94 views

How can I make the initial frame invisible?

Using the following command line causes Emacs to briefly display the initial frame, then hide it: emacs -Q --eval "(setq initial-frame-alist '((visibility . nil)))" This is consistent with the ...
2
votes
3answers
1k views

Resize/move frame/window

Are there emacs commands which will let me resize/move the frames/windows? By frame/window I mean the GUI object that X/Windows/whateverAppleCallsIt to contain the interface to emacs. Sorry, emacs ...
2
votes
3answers
342 views

Hide emacs frame until loaded

In my init.el file, I have some code to hide the Emacs toolbar: ;;; Hide the toolbar (tool-bar-mode -1) But when I load Emacs, it first enables the toolbar, and then quickly hides it, after it reads ...
2
votes
2answers
475 views

Detect/specify the monitor a frame is on?

Q: how do I detect/specify the monitor a frame is on? I'm working off of a laptop that has an external monitor connected to it. I therefore have two monitors (call them INTERNAL and EXTERNAL). On ...
8
votes
2answers
877 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 ...
3
votes
1answer
253 views

Get emacsclient to reuse exising X-window, iff any [duplicate]

I'm trying to set my desktop environment to use emacsclient to open text files. I would like only one emacs x-window to be opened. Yet I don't know which command can be used to have an x-window ...
8
votes
3answers
2k 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 ...
0
votes
2answers
336 views

How can transparency be toggled?

I've used the toggle-transparency function from https://www.emacswiki.org/emacs/TransparentEmacs (eval-when-compile (require 'cl)) (defun toggle-transparency () (interactive) (if (/= ...
0
votes
0answers
137 views

next-error and multiple frames

I have a multi monitor setup and I typically have two Emacs frames, each filling a monitor. I use display-buffer-reuse-window (reusable-frames . T) as my only customisation. One thing bugs me in my ...
1
vote
0answers
43 views

If I move frame during Emacs startup, it moves back at the end of startup

I have a fairly long startup for Emacs 24.4 on Microsoft Windows 7. I try to move the frame where I want it during startup, but it snaps back after all the startup code is done running. I don't appear ...
1
vote
1answer
319 views

In non-terminal Emacs, how do I make new frame open within the same OS window?

Basically, I would like GUI emacs to replicate the terminal behavior, where a new frame is opened within the same (OS) window. This would work similar to vim's tabs, which are just a way to move ...
1
vote
2answers
291 views

Automatically toggling margin width on resizing

So I'm using Emacs in Windows (Emacs 24.5.1, Windows 10). I've set a default margin width of 20 on both sides for text-mode, but occasionally I like to resize the window in half (Windows+left or right ...
0
votes
1answer
172 views

How can I arrange several frames at fixed, relative positions?

When compiling a TeX document I would like to have two buffers containing the LaTeX output and TeX-error-overview in separate frames which are positioned relative to the current frame (the error ...
2
votes
1answer
75 views

Why is initial frame sticky on launch? How can I stop it?

After a recent version change, my Emacs 24.5 is now making its initial frame (window) "sticky" on launch. I am having to unstick it manually, which is a royal pain. I tried using the Emacs variable ...
2
votes
0answers
730 views

Always open files in new frame (osx)

Whenever I double-click files on finder to open them using emacs, they open in existing buffers. Instead I would like them to open in separate frames by default. It seems as though many others have ...
7
votes
2answers
970 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 ...
2
votes
0answers
49 views

How can I switch to the most recent frame with other-frame?

The function other-frame cycles through the open frames in a fixed order. This can be pretty inconvenient for example when the compiling log of LaTeX comes to the front, I want to switch back to my ....
9
votes
0answers
319 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 ...
11
votes
3answers
996 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 ...
0
votes
1answer
202 views

How to set the dimensions of additional frames in Emacs / Aquamacs (OS X)

I'm using Aquamacs on OS X and have multiple monitors in my setup. I'd like for all my Aquamacs frames to open with a certain position and size. In fact, my problem is rather similar to this one on ...
1
vote
1answer
61 views

How can I keep the emacs window at a constant size when hiding/showing the menu bar?

I don't like to waste screen space, so usually I have the menu bar hidden. Sometimes, I'd like to show it nevertheless, so I have bound the "menu" key to menu-bar-mode. Works perfectly: (global-set-...
7
votes
1answer
829 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 ...
1
vote
0answers
73 views

Behaviour of frame-pixel-width function during Emacs loading

My goal is to resize Emacs frame on start to make its width 120 chars and center the frame. To compute offset i'm using this: (let* ((width-left (- (x-display-pixel-width) (...
1
vote
1answer
47 views

Global window numbers for all frames

I am using window-numbering.el to switch between windows in a frame. However if I have multiple frames each frame starts numbering its windows beginning with 1. Is there a way I can have global window ...
3
votes
1answer
148 views

Obtain absolute pixel position of point

I'd like to obtain the absolute pixel position of the point (i.e. the cursor, not the mouse pointer) in the current buffer in a GUI frame, to pass it onwards to an external program. I don't mind ...
5
votes
1answer
2k 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 (...
2
votes
0answers
326 views

dedicated frame for mu4e

I'd like to run mu4e in a dedicated frame but on the same emacs server. The following function gets me almost there: (defun malb/mail () (interactive) (select-frame (make-frame-command)) (toggle-...
5
votes
1answer
740 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 ...
1
vote
2answers
2k views

How can I close the current frame upon killing a buffer if that frame was only opened for it?

When I open a file in Emacs.app, via Finder, via the edit-server or during merging on an SVN update, it shows up in a new frame. When I kill that buffer, I pretty much always also want close the frame ...
3
votes
3answers
465 views

Finding frames by name

I'm trying to write a little compilation monitor frame that gets compilation updates written to it without the overhead of seeing absolutely everything going on in the compile. I've been working with ...
2
votes
1answer
225 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 ...
2
votes
1answer
65 views

Don't let the daemon frame make a file visible

I normally start Emacs in daemon mode and reload my last session with the desktop package. This causes whichever file desktop-read open last to remain visited in a buffer which is selected in the ...
3
votes
2answers
937 views

How can I force Emacs to open files in new frames?

When I open a new file I want it to pop-up in a new frame. I've set pop-up-frames to t, but it still opens files that I double-click in Finder in existing buffers which results in other buffers being ...
0
votes
1answer
113 views

magnifier box appears in middle of Emacs frame

This box appears in the center of my Emacs frame with certain actions. The most reliable way to trigger it is attempting to move the cursor past the boundaries of the buffer. It disappears after ...
3
votes
1answer
281 views

Different font heights for each Emacs frame

I use multiple monitors with different DPIs so I would like to have all windows in the Emacs frame on a specific monitor with a bigger font height to have the a closer physical appearance to the other ...
1
vote
1answer
113 views

Find the name of the graphical display emacs is running on

I run emacs using a server and multiple clients on both, the graphical display and the terminal. To use the same configuration files for terminal and graphical display, I used this solution. The issue ...
2
votes
0answers
210 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 ...
2
votes
1answer
462 views

How to set set both frame title and name when creating a frame?

I'm trying to create a frame with the following params (make-frame `((name . "Foo") (title . "[%F] %b))) to try and create a frame with the title [Foo] buffer_name. But it seems only ...
1
vote
2answers
62 views

Frame title using shell-command

I try to do a shell command in frame-title-format. (setq frame-title-format (list (format "%s" (shell-command-to-string (concat "ls -1 %f"))))) ls: cannot access filename: No such file or ...
0
votes
0answers
63 views

How can I apply a frame register (saved via desktop.el) to the current frame instead of opening a new frame?

I am using desktop.el and I saved a few frame configurations in my registers. But when I jump to a saved register (C-x r j), Emacs opens a new frame instead of applying that setting to the current ...
3
votes
2answers
728 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" ...
14
votes
1answer
236 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 ...
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
3k 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
545 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
257 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" ...