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
1answer
21 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
61 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 ...
1
vote
0answers
51 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 ...
1
vote
1answer
25 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 ...
0
votes
1answer
47 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") ...
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
34 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
22 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
21 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. ...
1
vote
0answers
21 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
51 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
9 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
0
votes
1answer
17 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 ...
1
vote
1answer
21 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 ?
1
vote
1answer
31 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. ...
2
votes
2answers
37 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
0answers
31 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, ...
0
votes
1answer
30 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
39 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
20 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 (...
4
votes
2answers
75 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
1answer
50 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?
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
1answer
76 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
1answer
46 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
69 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
55 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
80 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
220 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
114 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
70 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 ...
2
votes
2answers
440 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 ...
3
votes
1answer
112 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 ...
0
votes
1answer
32 views

ERC, opening query messages in the same frame

I use to have diferent frames for diferent tasks... I'd like to get new private message windows open in the same frame that the rest of the ERC stuff, not in the current focused frame. I'm searching ...
2
votes
0answers
73 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
67 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 ...
0
votes
1answer
133 views

set-frame-size does not work on emacsclient

I have set up Emacs daemon on Windows 10. My Emacs version is GNU Emacs 25.3.1 I have some code in my init.el which resizes the frame size automatically when Emacs starts up. The code is ;; Select a ...
0
votes
0answers
109 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 ...
1
vote
1answer
51 views

How to set font-height for all future frames?

I've set the font-family and font-size in a few different ways before, one of which was: (custom-set-faces '(default ((t (:family "Liberation Mono" :height 150))))) However, I learned that if you ...
0
votes
0answers
36 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
38 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 ...
1
vote
0answers
82 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
2answers
1k views

switching from tmux + terminal emacs to Emacs only

I am thinking of switching from tmux + terminal emacs (emacs -nw) to just pure emacs. The only thing that is holding me back is tmux offer switching between sessions without switching the terminal ...
0
votes
0answers
111 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
57 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 ...
1
vote
1answer
367 views

How can I make emacsclient use an existing window in the current frame?

I'm on MS Windows, if that makes a difference. My desired behavior: There is only one frame visible at any time. Visiting a file should use an existing window in that frame. (This is the default ...
1
vote
0answers
17 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 ...
0
votes
1answer
194 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 ...
3
votes
1answer
44 views

If frame is maximized?

Is it possible (using only emacs-lisp) to find out if the current frame is maximized? Not fullscreen, but maximized.
0
votes
0answers
53 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. ...

1
2 3 4 5
7