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.
371
questions
0
votes
2
answers
38
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?
0
votes
0
answers
28
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 ...
2
votes
1
answer
85
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 ...
0
votes
2
answers
50
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 ...
0
votes
0
answers
26
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 ...
0
votes
1
answer
51
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 ...
0
votes
1
answer
140
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 ...
0
votes
1
answer
52
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-...
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
0
votes
1
answer
52
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 ...
1
vote
1
answer
13
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 | ...
0
votes
1
answer
61
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?
0
votes
1
answer
35
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 ...
3
votes
3
answers
284
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 ...
2
votes
0
answers
60
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 ...
0
votes
0
answers
53
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 ...
1
vote
2
answers
112
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 ...
1
vote
1
answer
71
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, ...
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 ...
0
votes
0
answers
169
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 ...
0
votes
2
answers
174
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. ...
0
votes
1
answer
24
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 ...
2
votes
3
answers
230
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 ...
0
votes
2
answers
46
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+...
0
votes
1
answer
72
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 ...
0
votes
1
answer
87
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 ...
1
vote
1
answer
472
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 ...
1
vote
1
answer
113
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 ...
0
votes
0
answers
21
views
emacsclient popup frame is hidden when no window is shown
I am trying to use emacs as a popup selector with fuzzy matching, it only works when the focus is on a window or a panel, the frame doesn't pop up when all windows are minimised, and the desktop area ...
1
vote
2
answers
76
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 ...
1
vote
0
answers
83
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 ...
0
votes
1
answer
48
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-...
0
votes
1
answer
56
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 ...
1
vote
1
answer
228
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-...
0
votes
0
answers
68
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" ...
1
vote
1
answer
50
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 ...
0
votes
2
answers
84
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,...
0
votes
2
answers
73
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 ...
0
votes
1
answer
58
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 ...
0
votes
2
answers
267
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 ...
1
vote
3
answers
292
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-...
0
votes
0
answers
49
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 ...
2
votes
1
answer
118
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-...
1
vote
1
answer
127
views
Why an external monitor changes emac's frame text size?
I recently migrated to emacs 27 up from 24 (new machine running on Ubuntu 20.04, up from 16.04).
When connecting (or unplugging) the laptop to an external monitor, emacs fails to adapt text size to ...
1
vote
1
answer
189
views
second frame not using values from default-frame-alist
I'm just starting to customize emacs on RHEL8, the entirety of the .emacs file is this:
(setq default-frame-alist '((width . 80) (height . 40) (menu-bar-lines . 1)))
When starting Emacs this sets the ...
0
votes
0
answers
62
views
Using `desktop-read` to reload frames -- closing one frame closes all frames
A very annoying issue with desktop-save and desktop-read that I'm encountering at the moment:
I'm starting Emacs in daemon-mode, and then open a client frame. I do desktop-read and my saved desktop ...
0
votes
0
answers
37
views
Moving focus to external application (Chrome) and back to Emacs
I was wondering what is the most efficient way to move in and out of Emacs windows.
In my workflow I use Chrome and Emacs constantly, so I am curious as to how other users have managed to move amongst ...
0
votes
0
answers
180
views
Can emacs use window system on terminal frame? (doom-emacs, iTerm)
I'm trying to set org-level-* height(font size) differently for each level(doom emacs, config.el):
(after! org
(set-face-attribute 'org-level-1 nil :height 1.75))
But it displays different ...
1
vote
0
answers
51
views
How to automatically hide mode line by detecting frame size?
Hide mode-line would be more compact for a narrow sub-frame like this:
For now, I'm using doom-emacs and binding keys like SPC t m to hide the mode-line, This just works but, I want to ask,
Is it ...
3
votes
1
answer
171
views
How to include name of current tab and its buffer in the frame title?
I would like the title my frames to show "<name of tab>: <name of buffer in active window>".
Presently, frame-title-format has its default value of %b, which shows only the name ...