Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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
2
votes
2answers
57 views

Mirror a frame to a projector screen

When using an external monitor/projector with Emacs, I use the Extend option (rather than Duplicate). Then I duplicate my work frame with C-x 5 2, that is make-frame-command, and I move the duplicate ...
2
votes
1answer
90 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-...
3
votes
1answer
70 views

Have compilation errors / grep match reuse current frame/window without ever splitting it?

I have searched in a number of places (1, 2, 3, 4) even looked at the e-lisp source files and could not figure out how to do, so I ask. Context I have bound next-error to a key. I'm in some source ...
0
votes
0answers
64 views

ace-window: How can I switch to a frame I can't see?

Windows 10, Emacs 25.1 When I want to switch between windows I user M-x ace-window and then select number. Nice. But I also want to switch to a frame that isn't visible. I can guess what number to ...
4
votes
2answers
162 views

Minimize emacs on Windows with Meta-Space, n?

I'd like to minimize emacs on Windows, when I press the Alt-Space, then n keys, just like with other Windows programs (because Alt-Space opens the program's menu that includes the 'Mi_n_imize' option, ...
1
vote
0answers
51 views

Show the current command line the frame title in a GDB session

I sometimes run multiple instances of Emacs, each running a GDB session. These GDB sessions are often running different versions of the same program, or the same program with different arguments, so I'...
0
votes
0answers
99 views

Emacs client doesn't connect to running server on Windows

I have fresh new installation of emacs altogether with spacemacs. I set env vars for alternate editor and server file. My server file after starting emacs looks like: 127.0.0.1:64518 11948 'M.P$#NT[...
0
votes
2answers
138 views

Multiple buffers for same file

The find-file command automatically selects and uses a preexisting buffer that is visiting the same file. My problem is, when using the same buffer in multiple frames, the frames will lag ...
0
votes
1answer
92 views

Emacs Dired `C-x C-j` opens a new frame instead of a new window

I am using Aquamacs 3.3 GNU Emacs 25.1.1 and Dired+. Sometimes the key sequence C-x C-j opens the Dired buffer in a new frame instead of a new tab in the running frame. I want the behaviour that the ...
1
vote
1answer
230 views

How to make frame-title-format persistent?

When I set the title for a frame to current buffers filename via (setq-default frame-title-format '("%b")) the title often falls back to "emacs@" system-name, when the frame is inactive. I'd expect ...
0
votes
1answer
177 views

What causes Emacs to maximize on startup?

I have just move to MS Windows 10, and installed emacs. Emacs starts with the frame maximized. I don't want that. I tried the -geometry option. First an initial frame is evident. Then a smaller ...
4
votes
5answers
995 views

Open the same file in two frames

With long files, I like to have two buffers that display the same file but at different positions. However, since I have two physical displays, I'd like to have two Emacs buffer, each on its own ...
1
vote
1answer
163 views

How do I focus Emacs from elisp in macOS?

I want to focus emacs by running some elisp. I have tried using do-applescript and the following snippet to focus Emacs: if application "Emacs" is running then tell application "System Events" to ...
2
votes
0answers
47 views

Launching GUI emacslient destroys terminal frame resizing capabilities

Whenever I launch a GUI session as $ emacsclient -c all the emacsclient sessions I've created with $ emacsclient -nw -c lose several settings. The problem only occurs right after launching a GUI ...
5
votes
1answer
95 views

How can I prevent Magit-status command from grabbing the frame focus?

when executing magit-status and quickly focus out emacs, after the magit buffer pops up, emacs grabs the focus back. This is quite inconvenient. Is there a way to prevent that focus changing? The ...
2
votes
0answers
99 views

Setting primary frame across displays on MacOS

I am working with 2 emacs frames, one on my laptop monitor (1) and the other on a larger external display (2). Whenever I switch between applications, e.g. between shell and Emacs, the Emacs cursor ...
2
votes
1answer
366 views

Prevent Helm from opening in a new frame

I recently updated Helm from MELPA to version helm-20180305.1056 and helm-core-20180306.2241. Now sometimes when I use Helm it opens in a new frame. I think this happens when I have 2x1 or 2x2 window ...
0
votes
1answer
100 views

How to get rid of strange tab in “emacs-mac” frame

On macOS High Sierra I have install the "emacs-mac" Emacs port via homebrew. The Emacs version now is 25.3.3. When starting up Emacs I get this strange tab in my Emacs frame: I have set the ...
3
votes
1answer
113 views

Frame specific narrowing

I'm using make-frame-on-display for collaborative editing with a colleague. Everything seems to work OK, but to avoid confusion we tend not to edit the exact part of the same file at the same time. ...
1
vote
1answer
707 views

Pop up new frame (with only one window and frame) to show specific buffers

I'm trying to add functionality to my spacemacs config. I want to show allAlchemist buffers in another frame. For example Alchemist Test Report or Alchemist Mix. So when I use M-RET t b, spacemacs ...
3
votes
2answers
595 views

How to swap buffers between two frames?

There are at least a couple of packages dedicated to moving buffers around within a frame (buffer-move and transpose-frame are the ones I'm aware of), but I don't seem to be able to find anything to ...
3
votes
1answer
119 views

Jump between two frames, code improvement

I often have got multiple emacs frame in various desktop, but only two of them are visible. I often need to jump between those two frames, but since other frames are opened I can't use C-x 5 o, ...
1
vote
1answer
42 views

Going to bookmark in other window and frame

I work with two screens (screen 1 and screen 2) and each screen has got an emacs frame (respectively frame 1 and frame 2). Sometime I have a bookmark in a window in screen 1, the cursor is in screen 2 ...
0
votes
0answers
73 views

`(ns-next-frame)` and MacOS virtual desktops (Mission Control?)

I use (ns-next-frame) to cycle focus between Emacs frames. However, if I place Emacs frames in separate virtual desktops, I would like focus to cycle only among frames on the current desktop. That is,...
0
votes
2answers
482 views

Newbie: Simple setup for dired in sidebar?

Simple question from a new Emacs user: I'd like to have my editing window have a sidebar (or a divided window, or a frame--I'm not sure of the terminology or the options here) that has a dired (or ...
3
votes
1answer
155 views

switch to dedicated window instead of duplicating the buffer

I can make a buffer dedicated to a frame using the following snippet I got from other posts (defun toggle-window-dedicated () "Toggle whether the current active window is dedicated or not" (...
1
vote
2answers
154 views

Automatically switch to new help frame

Now that emacs supports frames in terminal mode, I'm finding that the help commands open in a new frame. Is there a way to automatically switch to the new frame after it is created? I have seen the ...
4
votes
2answers
540 views

How can I kill all unmodified buffers / files and delete their related frames?

How can I close all unmodified buffers? Usually after a day of work - I've got a ton of buffers / frames open. Right now I have to navigate to each frame and close it - which then prompts me if the ...
2
votes
2answers
329 views

Frame centric (tmux like) emacs workflow

I really like the tmux workflow where one could split a window into multiple planes and then create a second window which could be also split multiple times, so one could have a window where some ...
0
votes
2answers
147 views

Preserving Layout Using emacsclient

If I spawn Emacs in --daemon mode, I can then use emacsclient to connect to the daemon from within a terminal window. If this then dies, I can reconnect my terminal and my Emacs session is still ...
2
votes
1answer
149 views

How can I highlight cursor or line in unselected frames?

Prelude Let me start by mentioning the scenario where the problem arises. I see that 2-3 variables are always used together in a system. I need to add yet another one that will be used along with ...
4
votes
1answer
315 views

How to detect the term color support inside of a emacsclient session?

I run a emacs daemon on boot as a OpenRC service without info about terminals. When I plug a different terminal on emacsclient so, I don't have env variables instead that was generated inside of emacs ...
2
votes
1answer
242 views

How to display only the pop-up capture frame

During (org-capture) invoked from any other app on OSX, Emacs displays the non-capture frame as well (behind the capture frame). Is there a way to get Emacs display the capture window only when (org-...
3
votes
2answers
391 views

If emacsclient already open, new emacsclient should “inherit” its buffer list

My workflow involves splitting frames a lot because I use i3wm. If I use the emacs native make-frame-command, the new frame will be visiting the buffer I invoked the command in. If I call emacsclient ...
5
votes
2answers
81 views

Closing emacsclient after quitting calc?

I'd like to run calc in an emacsclient in my terminal, and then have that particular emacsclient session close completely and return me to my shell when calc quits. I've got the first part of that ...
0
votes
0answers
43 views

frame title as buffer file resets to default after some time

In my ~/.emacs I have the following: (setq frame-title-format '("" invocation-name ": " (:eval (if (buffer-file-name) (abbreviate-file-name (buffer-file-name)) ...
3
votes
2answers
579 views

Opening emacsclient -n -c opens a small frame with small fonts

I had set up a emacs --daemon at the OS startup and whenever I try to open emacsclient -n -c emacs opens a small window (possibly the minimum size possible) and with unreadable fonts (they are too ...
1
vote
1answer
95 views

Frame overview in top bar

I'm using emacs in a text terminal and would like to have an overview over the frames at all times. Something like the tab bar in firefox would be neat. Is that possible somehow?
5
votes
2answers
337 views

How to set Projectile project name as frame title

I would like to have the Projectile project name as frame title and also have it updated when I switch between two different buffers in two different Projectile projects. I tried with the following: (...
0
votes
0answers
383 views

Emacs: How to open new frame on a second screen in windows

I use two screens and windows 10, and want to open a new emacs frame on the other screen than the one I use. How do I do this? Preferably, I want the new frame made to be maximized in size. I have ...
0
votes
1answer
63 views

Seeking an editing mode to ensure appropriate percolation of changes in function signatures

Function calls come in chains. f1 calls f2; f2 calls f3; etc. When the signature of one function along the chain changes during refactoring, the change often percolates up and down the chain. With ...
1
vote
1answer
103 views

Applying additional display settings on new client frames

I have the following function in my emacs config: (defun *make-frame-pretty (frame) "`*make-frame-pretty' will apply additional theme settings to make it prettier" ;; Add a fringe. ;; It's ...
0
votes
0answers
41 views

Open new frame such that they fit one third of the screen

I use (add-to-list 'default-frame-alist '(fullscreen . fullheight)) for having the new frames as tall as the screen. How can I tell emacs to make the new frames as large as one third of the screen ...
1
vote
0answers
249 views

How to use multiple frame (C-x 5 2) within only one (system's) window in GUI Emacs?

In console version of Emacs (emacs -nw), I can create frame with C-x 5 2 and use C-x 5 o to switch between them. This concept is just like "workspace" in Linux desktop, or "Mission Constrol" in macOS. ...
3
votes
1answer
752 views

Attempt to delete minibuffer or sole ordinary window

I have a daemonized emacs, and I'm able to close any emacs frame, even the last one, using the window manager or old good C-x C-c, just to be able to retrieve all my buffers when i ask the daemon for ...
0
votes
1answer
74 views

How to disable the close frame shortcut? [duplicate]

Apparently pressing C-[ (three times in a row it seems?) (or alternatively ESC three times) closes a frame. I oftentimes accidentally press C-[ when I meant to press C-p. I tried to disable it with (...
0
votes
1answer
1k views

No Title Bar on Emacs 25 + Mac

I'm running Emacs 25.1 on macOS Sierra. After opening Emacs using the GUI and maximizing its frame, I execute (C-x C-e) the following code: (setq ns-auto-hide-menu-bar t) (set-frame-position nil 0 -...
3
votes
1answer
815 views

macOS tab feature breaks Emacs new frame behavior; a simple fix?

Prior to macOS Sierra I would use C-x 5 2 to create a separate frame which was created in an OS X window so that there were now two windows. This is using the latest EmacsForOSX version straight out ...
1
vote
0answers
40 views

Running emacsclient causes some flashing effect to happen on other frames

I picked up this code from: Is there any way to run a hook function only once? (setq myGraphicModeHash (make-hash-table :test 'equal :size 2)) (puthash "gui" t myGraphicModeHash) (puthash "term" t ...
1
vote
1answer
55 views

How to prevent dired from changing window (frame) title?

Using graphical version of gnu emacs v24.4.1 on centos7. I set the window (frame) title manually with this: (setq frame-title-format '("SAMPLE TITLE")) It is working OK and tittle gets set fine. ...