Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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
0 answers
12 views

How do I make Flycheck not create a second frame?

I am learning Lean4, and lean4-mode uses Flycheck. If I only have one frame and one window, and I edit this Lean program in that window, import Lean.Elab.Command elab "#check_syntax " t:term ...
Eduardo Ochs's user avatar
0 votes
0 answers
14 views

Automatically set parent terminal title as current buffer name

I'm running Emacs in terminal with -nw option over i3 in Ubuntu 22.04. I use emacs server to start automatically in background and create more emacs-clients from more parent gnome-shell terminals. It ...
Mitu Gabriel's user avatar
1 vote
1 answer
23 views

Run ansi-term in a new frame

I have the following in my .emacs : (add-to-list 'display-buffer-alist '("\\`\\*e?shell" display-buffer-pop-up-frame)) And it opens shell or eshell buffer in the new frame when I run M-x ...
Mark's user avatar
  • 175
0 votes
0 answers
13 views

Frame freezes, but can still type & open new frame

I am running Emacs 29.3, installed via brew, on MacOS 14.4. Often (and this may have happened with earlier versions of both Emacs and MacOS; not sure), the current frame freezes. If this happens, ...
AnoE's user avatar
  • 440
1 vote
1 answer
48 views

Different fonts for buffer, minibuffer and modeline

I tried set-frame-font but it changes the font for not just the buffer, but also minibuffer and modeline. Is it possible to just change the font for the buffer, but not minibuffer and modeline? i.e. I ...
Microsoft Linux TM's user avatar
1 vote
0 answers
20 views

Restore window configuration in a different frame

I sometimes save my window configuration with C-x r w, and restore with C-x r j. However I can't restore the window configuration in a different frame. Is there a way to do this? NB: I found this ...
suvayu's user avatar
  • 1,638
0 votes
0 answers
38 views

emacs 29.2 /file/new frame shows Gtk error?

Running a bare emacs, no init file. Open emacs, Try new frame, I get (emacs:20034): Gtk-CRITICAL **: 08:39:58.945: gtk_distribute_natural_allocation: assertion 'extra_space >= 0' failed Resize the (...
Dave P's user avatar
  • 111
0 votes
0 answers
38 views

Broken fonts in new frames

In new frames opened by C-x 5 2, the text appears as rectangles (see the gif below). Possibly, Emacs doesn't respect my font settings. In my init.el file, I have the following lines: (set-face-...
Alex's user avatar
  • 155
0 votes
2 answers
44 views

How can I tweak TUI emacs to pick the last visited frame instead of last created frame after delete-frame?

When deleting current frame, Emacs always picks the last created frame to show. How can I tweak it to pick the last visited frame?
Amos's user avatar
  • 466
1 vote
1 answer
212 views

Visual Glitch whenever loading emacs

I am running emacs on WSL, and whenever I load emacs I get the following screen: It goes away for a half second whenever I click on it, but then it comes back. Very new to this so am unsure what is ...
Dogalon Bruno's user avatar
2 votes
1 answer
93 views

Is desktop restore expected to override --no-window-system?

When I run emacs -nw (--no-window-system) emacs (v29.1 on macOS v13.6.1) initially begins running in the terminal window, with the terminal clearing and the modeline appearing at the bottom. Quite ...
cpcallen's user avatar
  • 213
1 vote
2 answers
115 views

Why is emacsclient not reusing the existing frame?

I have emacs running as a daemon (using launchctl), and I can use emacsclient --socket-name=socket -n -r -a '' and open a frame just fine. But if I run it again (say, to open some file), it opens ...
Lee Crabtree's user avatar
0 votes
0 answers
47 views

using desktop.el in --daemon mode

I eventually figured out that the answer to this question https://groups.google.com/g/gnu.emacs.help/c/WZoW0LlqX6c/m/08Sa6alHp1oJ was to choose --bg-daemon rather than --fg-daemon when starting the ...
StackExchanger's user avatar
0 votes
1 answer
95 views

How to open file from windows explorer in a new frame with emacsclient

How do I achieve that files opened from Explorer with emacs are always opened in a new frame? I tried making a link that has the target <path/to/emacs/bin>/emacsclientw.exe --create-frame. When ...
evilsetg's user avatar
0 votes
1 answer
390 views

"Error (frameset): Wrong type argument: number-or-marker-p, nil" How to debug it?

Such a message in the "Warnings" window. "Frameset" I think refers to the .emacs.desktop file. I got this message when Emacs in daemon mode restored the desktop. There is no such ...
Herman's user avatar
  • 57
0 votes
1 answer
98 views

Setting (desktop-save-mode t) in init file calls (desktop-read) immediately when starting Emacs in daemon mode. How to avoid?

Previously, I used GUI Emacs, everything worked perfectly - the desktop was saved and restored as it should be. I decided to try Emacs in daemon mode. First I made changes to the init.el file: (custom-...
Herman's user avatar
  • 57
0 votes
0 answers
14 views

Can't create new frame in the text mode [duplicate]

Run Emacs in the text mode: emacs -nw M-x make-frame But new frame is not created
a_subscriber's user avatar
  • 4,124
0 votes
1 answer
58 views

Why in text mode can't open frame in the another monitor?

Linux Mint 21 Emacs 27.1 On my PC are plugging 3 monitors. So when I run Emacs in GUI mode and then run command M-x make-frame-on-monitor I get the next result: I select desire monitor and Emacs ...
a_subscriber's user avatar
  • 4,124
1 vote
1 answer
20 views

ESS with R sessions in different frames

When I have two frames open with different R sessions in each, such as +------------+------------+ +------------------+ | # file.R | | | | | 1+4 | ...
r2evans's user avatar
  • 275
0 votes
1 answer
75 views

Setting frame at fullscreen without toggle [duplicate]

How can I maximize the current frame in an idempotent manner? That is to say, it maximizes the frame if it isn't, and leaves the frame maximized if it is?
Dilna's user avatar
  • 1
0 votes
1 answer
62 views

frame hook load theme causes frame to crash after creation

I have attempted to change my emacs theme. I am using the emacs daemon and I have attempted to create a hook to change the theme on frame creation. However when this hook is active the frame crashes ...
Progamer's user avatar
5 votes
5 answers
806 views

emacs starts in extremely tiny window

Emacs has been starting up in an extremely small window for some reason. The text size is normal, but the window is something like 3 lines tall x 10 chars wide. Of course I can use my mouse and just ...
xdavidliu's user avatar
  • 223
3 votes
0 answers
92 views

lsp-mode's magic to prevent C-x 1 from working?

When I start emacs all functionality of frames works fine. I can split frame by two via "C-x 3", switch to it "C-x o", and then close other (left) frame via "C-x 1". But ...
user1244932's user avatar
0 votes
0 answers
81 views

How to have transparency in frames, but disable transparency in PDF windows?

Basically what the title said. I like to have some transparency. (got it with following line) (add-to-list 'default-frame-alist '(alpha 95 95)) However, this makes PDF buffers also transparent, which ...
Garid's user avatar
  • 666
1 vote
2 answers
249 views

How to reuse a window in another frame for display-buffer

I like to have the Help buffer in a some frame (with some other windows) and I try to reuse this window in this frame even when I am in another frame and issue a help command. I tried setting (setq ...
halloleo's user avatar
  • 1,345
1 vote
1 answer
103 views

Emacs Mac port - double-click title bar to maximize

When running the GNU Emacs on Mac OS (either from Emacs for OS X or from emacs-app on MacPorts) when I double-click the title bar, first the window maximizes vertically. When I double-click it again, ...
massysett's user avatar
  • 111
2 votes
1 answer
44 views

be informed when Mouse Dragging Frame

When a mouse drags a maximized frame, that frame will become a normal size (i.e., not maximized). It seems that Emacs will receive a message when its frame is being dragged by a mouse. I want to run ...
shynur's user avatar
  • 5,328
0 votes
0 answers
263 views

Corfu not displaying child frame

I have installed Corfu to use for completions but it's not doing or displaying anything. I have verified that it's enabled but at no point does a child frame appear. I've read the documentation but it ...
Ruven Salamon's user avatar
0 votes
2 answers
186 views

Why does Emacs hold on to a not common sense meaning of the words: frame and window?

Below voluminously explained the context of the question stated in the question title: I have started to use Emacs very intensively some days ago and are still bumping into doing things the wrong way. ...
Claudio's user avatar
  • 475
0 votes
1 answer
30 views

I can't bind a key to specific commands for some reason

Why can't i remap my keys with the following command in my spacemacs init.el file? (global-set-key (kbd "C-+") 'frm-zoom-in) For some reason,it gives me the following error: Wrong type ...
Matthey969's user avatar
2 votes
3 answers
339 views

Save/Restore Position and Size of Last Closed Frame

Say there're 3 frames Fa Fb Fc. Then I closed Fa Fc, Emacs needs to remember nothing; instead, Fb is the one that needs to be saved its parameters, because it's the only frame on the desktop. Then ...
shynur's user avatar
  • 5,328
0 votes
2 answers
76 views

Change font size for buffer in a single frame (ideally zoom in/out using key or mousewheel)

In GNU Emacs 27.2 is there a way to change the text font size of a single buffer without changing all open instances of that buffer (in different frames)? In my version of emacs, when I use Ctrl+...
PatS's user avatar
  • 155
0 votes
1 answer
112 views

Change Frame Title

I'm reading here that I can change frame title, like this (setq frame-title-format "Church of Emacs") , but nothing seems to happen, when listing the window titles: $wmctrl -l 0x05e000aa 0 ...
Jason Hunter's user avatar
0 votes
1 answer
136 views

How to change default buffer when opening new frame

When I create a new frame with make-frame-command, it automatically opens the currently open buffer in the new frame. Is it possible to change this to open the scratch buffer instead? I'm using ...
NewToEmacs's user avatar
1 vote
1 answer
769 views

How to define display-buffer-alist, to keep every buffer in the frame it is currently?

I work with different Emacs frames on the same desktop. When I run compile Emacs splits the current frame and creates a clone of the buffer *compilation*, although the compilation buffer is already ...
ceving's user avatar
  • 1,378
1 vote
1 answer
196 views

Setting the Default Zoom of An Emacs Frame (Without Stutter)?

When launching emacs, I've been manually calling (dotimes (i (or arg 15)) (spacemacs/zoom-frm-in)) to zoom the frame in 15 times over. I actually added this to a script so that it happens every ...
George's user avatar
  • 919
1 vote
2 answers
85 views

Window Point Reset After Update

I have a buffer which is updated periodically using run-at-time, and in order to maintain the point in each window I use set-window-point, but I find that in sometimes when something is interrupted ...
C4ffeine Add1ct's user avatar
1 vote
0 answers
96 views

How to switch buffers (prev & next) with minimal buffer list order modification?

How to switch buffers (prev & next) with minimal buffer list order modification? To be succinct and without getting into the weeds of particular details, the best way to explain what I am trying ...
David's user avatar
  • 126
0 votes
1 answer
54 views

left and top for initial-frame-alist using cons variable [duplicate]

I am using a variable storing a cons cell (defvar typex-frame-position (cons 1270 1223)) Followed by (setq initial-frame-alist '((left . (car typex-frame-position)) (top . (cdr typex-frame-...
Dilna's user avatar
  • 1
0 votes
1 answer
74 views

Storing position for initial frame

I have the following code to store the position where to put the initial frame (fxpos and fypos). My problem is that when I run a new emacs session, the defcustom commands are resetting the values ...
Dilna's user avatar
  • 1
1 vote
1 answer
382 views

Setting position of initial frame from user defined values

I would like to set the frame position of the initial frame, by letting the user position the frame where he wants. I can then save the cons cell in a variable which will then be used for set-frame-...
Dilna's user avatar
  • 1
0 votes
0 answers
90 views

menu-bar-mode and tool-bar-mode change frame size

Am calling the following two functions repeatedly (toro-fullscreen followed by "toro-normal"). The size of the frame changes. The problem happens when calling "menu-bar-mode" ...
Dilna's user avatar
  • 1
1 vote
1 answer
62 views

How do I automatically reload my agenda views on window/frame resize?

I've noticed that my agenda views get squashed (line breaks) when my window/frame resizes, e.g. when I move the Emacs frame to a smaller monitor. Is there a way/hook to automatically reload my open ...
Chillja's user avatar
  • 13
0 votes
2 answers
105 views

How to enable markdown-mode every time I invoke Emacs Anywhere?

I am using a cool software called Emacs Anywhere. Usually, I invoke this software to write on Stack Overflow and on GitHub. Both websites use markdown. Hence, almost every time I invoke Emacs Anywhere,...
Pedro Delfino's user avatar
0 votes
2 answers
102 views

How to add a hook to save things on kill-ring (or clipboard ring) before a frame is deleted?

Context: I have been using an interesting software called Emacs Anywhere. It helps me bring emacs keybindings for stuff like this (editing text for a question on Stack Exchange). Overall, the software ...
Pedro Delfino's user avatar
0 votes
1 answer
65 views

How to force `find-file` to visit the existing frame of an opened file

The below function creates a new instance of the file myfile.txt (regardless of if myfile.txt is already opened or not). How to force emacs to use the existing frame of that file (if any)? (defun ...
Name's user avatar
  • 7,881
0 votes
2 answers
405 views

How to always work from a daemon and always reuse an existing frame? (bonus: do it with chemacs2)

I'm new to emacs. I'm a spacemacs implant, really love ORG mode and evil mode. Been using for the past year or so. I've read some of the emacs documentation, which is fantastically written. But I'm ...
Lockszmith's user avatar
1 vote
3 answers
373 views

How to move the time and date displayed in the tab-bar a couple of character to the left

I would like to move the time and date displayed in the tab-bar a couple of characters to the left, so that the time is not completely on the edge of the screen. Here is the relevant code : (setq tab-...
Emperor_Udan's user avatar
0 votes
0 answers
55 views

Z-Order of Emacs Client Not Layered Top-Most

System & related settings: Fedora 35 (using Cinnamon Desktop) Emacs 27.2 focus mode: "sloppy" with "raise-on-click" disabled Contrary to all other applications, including the ...
Phoenix's user avatar
  • 351
2 votes
1 answer
142 views

By elisp how to change backgound color when specific theme is activated?

How do we set "white" background when only "adwaita" theme is activated. The following does not work. (when (equal 'custom-enabled-themes "adwaita") (set-background-...
Nadira's user avatar
  • 21

1
2 3 4 5
8