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
67 views

resizing frame by window manage under AnyDesk disassociates emacs buffers' dimensions

I'm trying a new (to me) remote desktop tool AnyDesk (v.5.5.4). I'm attaching to Ubuntu18 system at work from a Ubuntu19 system at home. When I resize an emacs frame with the mouse, the menu bar, ...
1
vote
1answer
108 views

full-frame helm?

Is it possible to run something like helm-recentf or helm-mini in a way that the helm window occupies the entire frame when it's running, and then disappears afterwards (like the helm windows normally ...
0
votes
1answer
49 views

Emacs 26.3: Weird frame title issue with KDE

I recently switched to CentOS 7.7, KDE 4.x, and Emacs 26.3. Previously, I was using GNOME and a much older version of Emacs. Before, whenever I opened Emacs, the titlebar of a lone Emacs window was ...
1
vote
1answer
62 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 ...
2
votes
1answer
102 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
1answer
59 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 ...
0
votes
0answers
31 views

How can I get a listing of all buffers and the frames displaying them?

I want to get a list of all the windows and their frames, so I can jump directly to the frame and window. If a buffer is not open in a window then the command should still jump to the last frame in ...
4
votes
3answers
99 views

Reference a window with a designated name

I list the current windows with #+begin_src emacs-lisp :tangle yes (window-list) #+end_src #+RESULTS: | #<window 14 on 28.Windows.org> | #<window 3 on .emacs.d> | Then I tried to ...
0
votes
0answers
34 views

How to keep mode-line in title bar even in new poped up frames?

I am using the following code to keep the org-pomodoro clock in the title bar, (setq frame-title-format '("" invocation-name "@" system-name " " org-pomodoro-mode-line)) ...
0
votes
0answers
18 views

How to focus or change point on child frame

I am trying to use lsp-ui package to display some documentation for Rust. When I put the cursor on a type for example, a popup child frame is created but the focus is still on the main window. If I ...
1
vote
1answer
29 views

How to setup ediff to open a new frame with the two comparison buffers

When I issue M-x ediff-buffersI'd like ediff to create a new frame with the two buffers (and close this frame when done with the comparison). How can I customise ediff to do so? I tried (defun leo-...
2
votes
1answer
66 views

how to move a line from one window to another?

I have two files open, shown in two windows. Some lines in one file belong in the other file. I could cut the line here, move to the other window, paste there, and come back. That's a lot of work with ...
4
votes
1answer
60 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 ....
1
vote
2answers
596 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-...
1
vote
1answer
321 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 ...
22
votes
2answers
5k 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 ...
0
votes
1answer
89 views

Font and frame configuration in daemon mode

In my .emacs I have (set-frame-font "Source Code Pro") (set-face-attribute 'default nil :font "Source Code Pro" :height 140) (set-face-font 'default "Source Code Pro") ...
1
vote
0answers
70 views

How can I set WM_CLASS for Emacs 27?

I use scratchpads in XMonad (my WM) extensively for quickly capturing (notes, TODOs etc) from anyhwere. I have an instance of Emacs running permanently in a workspace, and launch emacsclient as my ...
0
votes
1answer
55 views

Portable way of setting the windows urgent hint?

I've seen links to X11 flag setting that sets the current windows urgent hint. Is there a portable way to do this in Emacs? Or does it need to be handled per-platform?
1
vote
1answer
27 views

How can I create a frame and open two files split vertically in it?

I am trying to write an Elisp function that will create a new frame and in that new frame open two files split vertically. I have been unable to find anything about this in the Elisp manual, node ...
2
votes
1answer
122 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-...
0
votes
0answers
29 views

How to make a graphical frame when no other graphical frames are present?

One way would be to somehow guess a display and do (make-frame-on-display display). However, (getenv "DISPLAY") does not give a sensible answer (e.g ":" or nil). I tried to ...
1
vote
1answer
36 views

How to enable org mode and evil mode for untitled buffer when creating a new frame

The code below creates a new frame with an untitled buffer, how to make this buffer default with org-mode and evil-mode? (global-set-key (kbd "s-n") 'new-empty-frame) (defun new-empty-frame ...
0
votes
0answers
24 views

Colors in frame title

Is there a way to use custom colors in the frame title? I couldn't find a face for it and it seems like the title might be part of the OS, but I wanted to check here to make sure. I'm using GUI emacs, ...
0
votes
0answers
25 views

How can I apply `emacs-maple-minibuffer` for `helm-for-files`?

=> How can I apply emacs-maple-minibuffer for helm-for-files? I pasted emacs-maple-minibuffer's function from its README but seems like it does not take any affect. I am not sure what is missing. ...
2
votes
0answers
71 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 ...
1
vote
0answers
22 views

Emacs blocked by interactive query in inaccessible frame

Recently I found my emacs, which I run as a daemon, in a blocked state. It would not react to any command. Not C-g, not cursor movements, nothing that I could think of. Then I realized, that I had ...
1
vote
1answer
55 views

How to set name of an Emacs frame?

I am new to Emacs, I use text Emacs (inside Putty) and I am from Vim land. So, bare with me about the terminologies that I use. I want to have a custom string in the mode line for the frame name (to ...
0
votes
0answers
12 views

Center the following buffer in next-error-follow-minor-mode

I am using next-error-follow-minor-mode to preview my search results. The problem is that the preview buffer doesn't center around the current line: Related
2
votes
0answers
310 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? +------------------+-----------+ | | ...
0
votes
1answer
18 views

swap files created when I open a new frame

When I use C-x 5 2, it opens a new frame showing the same file that I'm already editing. So, every time I open a new frame, I get an unwanted need to "swap" to another file. Is there a way to get ...
3
votes
4answers
2k 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 ...
5
votes
3answers
2k views

resize Emacs (GUI) window to exactly half the screen?

When I maximize the Emacs frame, it uses the full width of the screen, no background showing. But if I e.g. snap-to-edge (in XFCE), it shows a little "margin" of background outside the frame. And if I ...
1
vote
1answer
32 views

Relationship between frame, buffer, and file

I am trying to check how frame, buffer, and file work. It seems to me that frame commands(C-x 5 ...) create a frame, whether a buffer or file exists or not. Here is what I am thinking: C-x 5 2 1. ...
1
vote
1answer
22 views

Changing the order of frames

I generated multiple frames by C-x 5 .... Is there a way to change the order of frame when we visit using C-x 5 o ?
2
votes
2answers
38 views

Offsetting successive frames

In my init.el I have the below setting for the initial frame position: (setq default-frame-alist '((top . 80) (left . 300) (width . 85) (height . 45))) When I open a file in a new frame, it ...
0
votes
1answer
32 views

Aquamacs: Display *Occur* in current frame

I find that if I run *Occur* on different virtual displays, Aquamacs will reuse whichever frame *Occur* ran in the previous time, often giving me the results I want to see on a display which I am not ...
1
vote
1answer
42 views

How to configure emacs to start in the middle of the screen, and not in the top left corner?

Currently have a GUI version of GNU Emacs v.26.3 (on MacOS Catalina, also have a similar version on Ubuntu 16.04), and because I'm just getting started with the editor, I have this question: how do I ...
0
votes
0answers
23 views

`make-frame`, when called in `window-setup-hook`, creates the new frame as workspace 0 in EXWM

The title. After initialization has finished, make-frame naturally creates new frames as higher numbered workspaces, but for some reason when called in window-setup-hook, it creates it as workspace 0 (...
2
votes
1answer
93 views

Using multiple tty emacsclient with “C-x 5” other frame commands

I'm using emacs in daemon mode on a server and connecting over ssh in a terminal console (tty) window (i.e. no GUI support). I'm invoking emacsclient using in the tty window (window here refers to OS ...
0
votes
0answers
23 views

Display minibuffer on all frames

The minibuffer is only displayed on the active window's frame. For instance, the following creates three frames. The minibuffer shows on the first frame (the initial frame created and, thus, the ...
2
votes
2answers
564 views

automatically open new buffer in new frame

I use tiling window manager and usually prefer it to handle emacs frames instead of using emacs windows. Is there a way I could force emacs to spawn new buffers in new frames automatically? Ideally ...
1
vote
1answer
75 views

ESS: display-buffer-alist reusable-frames does not work as expected

I'm trying to use the display-buffer-alist variable to control how Emacs displays spawned inferior shells (ess-r in particular). I'm using the display-buffer-alist value from ess doc: (setq display-...
0
votes
1answer
56 views

Linux command line to launch gnuemacs

I would like to launch Emacs by typing a command line in the terminal in Ubuntu linux. I want Emacs to open file a.txt in one frame and another file b.txt in another frame. I tried the command *emacs ...
0
votes
1answer
99 views

using display-frame-alist to force switch to buffer

Could someone please explain how to use default-frame-alist to make list-buffers switch to the resulting results buffer? list-buffers uses display-buffer so I am thinking that display-buffer-alist is ...
0
votes
0answers
279 views

How do I configure first emacs frame position on startup?

When coding I prefer to have my screen split vertically in two with my editor on the right and reference material or browser opened on the left. This saves me from physically switching workspaces or ...
0
votes
0answers
141 views

Always open buffer in a new frame instead of a window

I found this question which suggested that setting pop-up-frames to a non-nil value should enable this behaviour. However when I added (setq pop-up-frames t) to my emacs init only some of the buffers ...
1
vote
1answer
83 views

How to stop (aquamacs) emacs opening all new buffers in new (gui) window/emacs frame?

I've just upgraded my aquamacs installation and a bunch of packages, and now emacs is opening every new buffer in a new (gui) window (aka emacs frame). I don't like this. I want to have every buffer ...
3
votes
1answer
126 views

How to set extra frames in size?

Whenever I open an info entry in emacs (C-h i) an additional frame pops up. On my system, it is too small and I'd love to have it in the top left corner, being wider and longer as it was created by ...
8
votes
2answers
3k 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?

1
2 3 4 5
7