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.

74 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9
votes
0answers
338 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
501 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
533 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 ...
4
votes
0answers
303 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 ...
3
votes
0answers
137 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
198 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
236 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
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 '(...
2
votes
0answers
10 views

emacs pinentry in minibuffer prompt blocks other frames?

I use Emacs in a terminal to read email using mu4e, mbsync. I have PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.authinfo.gpg | awk '/machine imap.gmail.com login rudolf.sykora@gmail.com/ {...
2
votes
0answers
28 views

Frame number in frame title - how?

I want to use two frames. One on virtual desktop #1 and the other one on #2. I (have to) work on Windows so I would like to see a frame number in the frame title, since Windows lacks a permanently ...
2
votes
0answers
29 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
97 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
110 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
64 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
67 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
775 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
50 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
335 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
217 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
0answers
34 views

How to set posframe as active?

Is there some option to make frame active when i create it? I can switch to it with this code, but maybe there's a way to do this without select-frame func? (defun show-misc-posframe () (when (...
1
vote
0answers
14 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
43 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
1answer
51 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
44 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
51 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
47 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
21 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
219 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
132 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
78 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
53 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
253 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
397 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
62 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
45 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
0answers
76 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
473 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
33 views

How can I merge/collapse multiple frames into one single frame in Spacemacs?

Sometimes I have multiple open frames (not only windows) in Spacemacs, and would like to collapse all frames into one single frame. That's easier to keep track on open buffers. However, I cant' find ...
0
votes
0answers
32 views

Get coordinate of point reliably

I need to get the coordinate of point for childframe and currently my approach is this (copied from the manual): (let* ((pos (posn-at-point point window)) (x-y (posn-x-y pos)) (...
0
votes
0answers
19 views

Why can't OSX handle Emacs client frames

By using the latest Emacs version from 1, it seems that when running in daemon-mode and when opening a new client frame from the terminal or from a custom OSX app I wrote which opens a new frame when ...
0
votes
0answers
36 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
47 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
61 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
44 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? [...