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.

71 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 ...
5
votes
0answers
488 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
0answers
521 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 ...
3
votes
0answers
105 views

Adding Purpose to Layout Of Emacs

The rigidity to which emacs adheres to its layout is annoying at times. How can i get a layout like this when I shift to the particular modes? +------------------+-----------+ | | ...
3
votes
0answers
164 views

How to make emacs work well with tiling window managers?

Under some conditions Emacs will try to resize a frame if its not fullscreen or maximized. (specifically default-text-scale, but I don't think its the only one). This sends window-manager window (...
3
votes
0answers
220 views

Emacs Fixed Layout

Background Used vim for 15+ years. Currently using Emacs + Evil + Cider (Clojure). My Ideal Workflow (this part is not the question -- merely describing my ideal workflow) Three vertical panes. +--...
3
votes
0answers
98 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 '(...
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 ...
2
votes
0answers
28 views

How to get desktop-read to ignore/modify frame size?

I'm using (desktop-save-mode 1) to save a session which I then reload, but logging in remotely from a different machine with a different resolution display. Something stored in the desktop winds up ...
2
votes
1answer
89 views

extra frame in (visible-frame-list) when started in daemon mode, is causing problems

When I start emacs (emacs), and then eval (visible-frame-list), I get a list with one frame, the one that is visable. However if I start emacs as a daemon (emacs --daemon), and then eval (visible-...
2
votes
0answers
47 views

Launching GUI emacslient destroys terminal frame resizing capabilities

Whenever I launch a GUI session as $ emacsclient -c all the emacsclient sessions I've created with $ emacsclient -nw -c lose several settings. The problem only occurs right after launching a GUI ...
2
votes
0answers
98 views

Setting primary frame across displays on MacOS

I am working with 2 emacs frames, one on my laptop monitor (1) and the other on a larger external display (2). Whenever I switch between applications, e.g. between shell and Emacs, the Emacs cursor ...
2
votes
0answers
56 views

make-frame-on-display & emacsclient fail w/ exported display while other apps are fine

I am connecting to my office GNU/Linux box from a windows laptop through a putty ssh tunnel. I have also on the laptop the java WeirdX X11 server, that is declared in putty to use the localhost:2 (...
2
votes
0answers
65 views

emacsclient -c new frame cannot have an individual new sr-speedbar

Since emacsclient depends on emacs server, when I first start emacs server and then try: emacsclient -c -n -a emacs --eval "(sr-speedbar-open)" It reports that sr-speedbar is arlready opened. Is it ...
2
votes
0answers
726 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 ...
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 ....
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-...
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 ...
1
vote
1answer
47 views

switching from tmux + terminal emacs to Emacs only

I am thinking of switching from tmux + terminal emacs (emacs -nw) to just pure emacs. The only thing that is holding me back is tmux offer switching between sessions without switching the terminal ...
1
vote
0answers
13 views

Prevent menu-bar from expanding too much

The way I have things configured, some Emacs modes end up adding a lot of entries to the menu-bar. As a result, the Emacs frame increases in width. This results in various annoyances. For now, I've ...
1
vote
1answer
34 views

How prevent `display-buffer` from opening a specific buffer in a new window if and only if it is shown in another frame

I want the *compilation* buffer to not pop up in my main frame when I have it in another frame already open. However if the buffer is not shown anywhere, I do want it to pop up in a new window of the ...
1
vote
0answers
29 views

How to always show buffer in the new created frame?

My workflow is: I initialize emacs with a shortcut (in my ~/.i3/config I have a line like this bindcode $mod+49 exec emacsclient -c -n -q -a=''. I use i3wm.org) By default it goes to temp.org, in ....
1
vote
1answer
44 views

How can I automatically swap frame buffers if the buffer is already open?

I've seen the https://www.emacswiki.org/emacs/buffer-move.el script, but I'm trying to something a bit different. Suppose I have a frame with a buffer from file A.h in it and A.cpp in another frame ...
1
vote
0answers
43 views

Reading frame configuration from file

I'm just trying my hands on emacs lisp. So far I've had some luck, but I'm stuck trying to load my frames configuration into a list. Here's what I'm trying to do... I am saving frames configuration (...
1
vote
0answers
43 views

Disable mouse drag to select

I often run into an issue where I will click in a Emacs frame to make it active and accidentally slide my cursor so that it changes from a click to a drag. This means that some text is highlighted ...
1
vote
0answers
39 views

Docking a matplotlib window-manager window to an Emacs window

Short version: I want a way to "dock" a matplotlib window-manager window into an Emacs window (similar to the image below), while still keeping the functionality (e.g. zooming) offered by matplotlib. ...
1
vote
0answers
20 views

Possible to save winner history winner-ring-alist in savehist or desktop-save to save across sessions

I added in the following command to my .emacs but it doesn't seem to work: (add-to-list 'savehist-additional-variables 'winner-ring-alist) Is there a way to get the winner-undo history to save ...
1
vote
0answers
184 views

org-capture frame with no splits

I want to be able to launch a new emacsclient and issue org-capture in it. I have created this simple function: (defun make-orgcapture-frame () "Create a new frame and run org-capture." (...
1
vote
1answer
103 views

How to save and restore frame zoom settings

Due to DPI differences, every time I switch between working on my laptop screen vs external display, I need to adjust frame zoom levels (SPC z f in spacemacs). I would love to be able to persist the ...
1
vote
0answers
76 views

Switch to last window

I am trying to use the code from this answer: Is there a generic toggle-previous-window function? (defun switch-to-last-window () (interactive) (let ((win (get-mru-window t t t))) (unless win ...
1
vote
0answers
51 views

Show the current command line the frame title in a GDB session

I sometimes run multiple instances of Emacs, each running a GDB session. These GDB sessions are often running different versions of the same program, or the same program with different arguments, so I'...
1
vote
0answers
248 views

How to use multiple frame (C-x 5 2) within only one (system's) window in GUI Emacs?

In console version of Emacs (emacs -nw), I can create frame with C-x 5 2 and use C-x 5 o to switch between them. This concept is just like "workspace" in Linux desktop, or "Mission Constrol" in macOS. ...
1
vote
0answers
40 views

Running emacsclient causes some flashing effect to happen on other frames

I picked up this code from: Is there any way to run a hook function only once? (setq myGraphicModeHash (make-hash-table :test 'equal :size 2)) (puthash "gui" t myGraphicModeHash) (puthash "term" t ...
1
vote
0answers
386 views

How to prevent emacs from popping up with new frames in response to dedicated windows? I would much rather it split the existing window

I've recently started using dedicated windows because I have certain windows (a python interpreter, sometimes a PDF of a LaTeX document), that I do not want obstructed under any circumstances. This ...
1
vote
0answers
81 views

Weird emacs graphics on popup windows

I have emacs 25.1.1 installed on my kubuntu 16.10 with gtk-3.18.9. Those popup messages that you get with emacs when you exit without saving: Those are looking very strange and taking up my full ...
1
vote
0answers
40 views

Calling `doc-view-goto-page` in other buffer

I'm trying to control paging of a PDF file in doc-view mode. Say we have the following snippet (let ((origin-frame (window-frame))) (with-selected-frame (make-frame-command) (let ((pdf-buffer (...
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 ...
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
2answers
290 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 ...
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
2answers
458 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-...
0
votes
0answers
29 views

Segmentation fault when creating new frames

I am reproducibly experiencing segmentation faults on Emacs 26.3 under Debian Buster when creating a new frame, which seems to be related to setting fonts for new frames. In order to illustrate I ...
0
votes
0answers
43 views

How to keep a high-level window configuration?

I use Emacs as a single maximized frame. The monitor is wide enough for two windows to sit together there, with a vertical split. I want this window configuration to be permanent, i.e.: I want it to ...
0
votes
1answer
36 views

Bring Emacs frame to front when running emacsclient on WSL

Currently using Emacs on Windows Subsystem for Linux (WSL). I have this alias for emacsclient executable: alias e='emacsclient -n' Which I run very often when I am on the terminal (I use ConEmu or ...
0
votes
0answers
41 views

Is frame background considered a face?

I would like to know if Emacs treats empty portions of the frame as faces. I want to know because I wonder if the background of an Emacs frame is drawn separately of other elements on the screen. ...
0
votes
0answers
25 views

How to solve non-persistence emacs frame title?

Some people had the same issue: frame title as buffer file resets to default after some time How to make frame-title-format persistent? I've tried to change frame-title-format value to: (setq frame-...
0
votes
0answers
33 views

How to automatically run a command when cursor is at bottom of visible frame?

The recenter command in emacs is recenter-top-bottom which I can invoke using Ctrl-l. How can I call this command automatically every time the cursor is on the fifth-last line in the visible frame? [...
0
votes
0answers
34 views

How to hide and restore popups in spacemacs GUI mode on OSX?

I tried to do some live coding today and stumbled upon this issue. The popups for lsp-mode were so big that they covered most of the code. I find the information helpful but I don't know how can I ...
0
votes
0answers
14 views

Inconsistent behaviour on title-format handling

I try to set the frame title to projectile-project-name: buffer-name when focused, projectile-project-name when not. I use the following title-frame-format and hooks to achieve that behaviour: (setq ...
0
votes
0answers
20 views

Why some frame-parameters don't work when calling display-buffer-in-child-frame?

Why some of a frame parameters don't work in a function below, for example (minibuffer . nil), but they all work if i use make-frame function. (defun create-nframe () (let ((buffer (generate-new-...