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
1 vote
3 answers
39 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-...
user avatar
0 votes
0 answers
21 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 ...
user avatar
  • 297
2 votes
1 answer
35 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-...
user avatar
  • 21
0 votes
1 answer
31 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 ...
user avatar
  • 109
1 vote
1 answer
35 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 ...
user avatar
0 votes
0 answers
21 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 ...
user avatar
0 votes
0 answers
32 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 ...
user avatar
0 votes
0 answers
12 views

display-buffer-reuse-frames with server-mode

I have been using display-buffer-reuse-frames for a long time. It works fine when creating multiple frames with X11, or MS-Windows. Today I was using emacs via ssh. So I tried to use this feature, ...
user avatar
0 votes
0 answers
42 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 ...
user avatar
  • 1
1 vote
0 answers
22 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 ...
user avatar
  • 11
3 votes
1 answer
44 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 ...
user avatar
  • 154
0 votes
0 answers
69 views

Dired: open file in another frame, but reuse an already existing one

I use a two-screen setup, and I like to have a frame with dired on one screen and another frame on the second screen. When I want to work on a specific file, I usually copy the file path from dired ...
user avatar
2 votes
1 answer
40 views

How can you list all non-child frames?

There's frame-list but this lists child-frames, and there's visible-frame-list but this doesn't list iconified frames. It seems like there should be a simple function to return all non-child frames. I ...
user avatar
0 votes
0 answers
23 views

make-frame - not full screen mode

Linux Mint 20.2 Emacs 27.1 To start Emacs in full screen mode in my init.el I use this: (add-hook 'window-setup-hook 'toggle-frame-maximized t) Nice. But when I want to start new frame by this ...
user avatar
  • 3,425
1 vote
0 answers
32 views

Open new file in new frame without raising existing frames (Windows)

I run Emacs in a MSWindows environment (via server launched with runemacs), and open new files with emacsclientw.exe -n [filename]. It works very well, except for a detail in the second case below: ...
user avatar
  • 183
0 votes
0 answers
29 views

What is the difference between `make-frame-command` and `make-frame-on-monitor`

Linux Mint 20.2. Emacs 27.1. I have 3 monitors (2 HP, 1 Dell) plugged in to my computer. I create an Emacs frame for every monitor. To do this I use command: C-x 5 2 or M-x make-frame-command. But in ...
user avatar
  • 3,425
1 vote
1 answer
66 views

How to dynamically replace certain text, by evaluating a function on change in current buffer

I am trying to figure out how to use window-change-functions refer here for official documentation to be able to run a function to replace certain text within the current buffer at every change of the ...
user avatar
2 votes
2 answers
190 views

How to use make-frame to bring up "maximized windows" like -mm does for the first window (using WSL 2)?

I am running emacs under (Ubuntu under) WSL 2 and I can bring up the first frame maximized (i.e. almost full screen, leaving the Windows "task bar" exposed, the -mm option does that). I ...
user avatar
0 votes
1 answer
78 views

frame-background-mode leads `Args out of range: #<buffer doo.py>, 0, 1` error

I am using following answer to search and replace a word in the entire buffer: (defun query-replace-region-or-from-top () "If marked, query-replace for the region, else for the whole buffer (...
user avatar
  • 1,036
2 votes
3 answers
256 views

local variable set to nil after switch-to-buffer call

Emacs 26.1 user here. I know some common-lisp but new to elisp, so I wonder if I'm missing something obvious. I'm trying a rather simple frame setup with a function I wrote, and there's this strange ...
user avatar
0 votes
0 answers
81 views

Minibuffer not showing the bottom line

When I use multiple monitors, the bottom line of the minibuffer doesn't render; ie there's a line at the bottom of the list that I can select but doesn't render on screen. I'm pretty stumped on how to ...
user avatar
0 votes
1 answer
31 views

`pop-to-buffer` in other frame if file is already visited

Say I have two frames open. Frame A is visiting a file foo.org. Calling (pop-to-buffer "foo.org") in the other frame (B) opens foo.org in frame B instead of moving the focus to frame A where ...
user avatar
0 votes
1 answer
30 views

Delete single window frame after app quits

Some of the apps (w3m, elfeed, mu4e, to name a few) when quit leave unused frame so the other buffer shows up in their place. Over time these redundant frames pile up, so we have to delete them. I ...
user avatar
  • 602
1 vote
1 answer
32 views

Deleting a minibuffer only frame on C-g

What I'm trying to achieve I'm trying to create a popup that runs an elisp funtion I've written which searches my library directory for pdfs, gets the user to choose an option (using completing read) ...
user avatar
  • 331
1 vote
2 answers
40 views

How can I display a buffer in a whole frame, removing the rest in the act?

Basically that. I need a function that would do this when I open a buffer in a frame with many other windows. Maybe Emacs has one by default.
user avatar
1 vote
0 answers
19 views

Why "set-face-attribute" needs to be executed twice when switching from a TTF font to a bitmap font?

I'm trying to write a function which switches between fonts in all frames. In order to do this, I first wrote the following commands: This font is a TTF font and is located in ~/.local/share/fonts/...
user avatar
  • 487
1 vote
0 answers
26 views

How to show all split window titles in the X11 window title?

If I split an Emacs frame (one X11 window) into multiple Emacs windows (with C-x 2 and C-x 3) and open different Emacs buffers in different Emacs windows, Emacs frame title (X11 window title) displays ...
user avatar
  • 111
0 votes
2 answers
248 views

Undecorated Frame with header line as titlebar

I am trying to remove all window manager decorations from emacs. This works well using: (set-frame-parameter nil 'undecorated t) But now what I want to have is a one line (global) header line (which ...
user avatar
0 votes
0 answers
117 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 ...
user avatar
  • 1,157
0 votes
0 answers
49 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)) ...
user avatar
  • 101
1 vote
1 answer
161 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 ...
user avatar
  • 123
1 vote
1 answer
89 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-...
user avatar
  • 1,041
2 votes
1 answer
97 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 ...
user avatar
3 votes
1 answer
321 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 ...
user avatar
  • 131
1 vote
1 answer
117 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 ...
user avatar
  • 121
0 votes
2 answers
776 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") ...
user avatar
0 votes
0 answers
44 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 ...
user avatar
  • 145
1 vote
1 answer
88 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 ...
user avatar
1 vote
0 answers
29 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 ...
user avatar
  • 136
1 vote
1 answer
133 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 ...
user avatar
  • 113
0 votes
1 answer
32 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 ...
user avatar
  • 111
1 vote
1 answer
47 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 ?
user avatar
1 vote
1 answer
51 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. ...
user avatar
2 votes
2 answers
109 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 ...
user avatar
  • 201
0 votes
1 answer
936 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, ...
user avatar
  • 11
1 vote
1 answer
55 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 ...
user avatar
  • 165
1 vote
1 answer
170 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 ...
user avatar
4 votes
3 answers
252 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 ...
user avatar
  • 1,089
1 vote
1 answer
117 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?
user avatar
  • 7,179
0 votes
0 answers
42 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 ...
user avatar
  • 3,885

1
2 3 4 5
7