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
4
votes
2answers
667 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
387 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: (...
1
vote
0answers
440 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
65 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
109 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
42 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
258 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
871 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
84 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 -...
6
votes
1answer
880 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
59 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. ...
1
vote
0answers
405 views

How to prevent emacs from popping up with new frames in response to dedicated windows? I would much rather it split the existing window

I've recently started using dedicated windows because I have certain windows (a python interpreter, sometimes a PDF of a LaTeX document), that I do not want obstructed under any circumstances. This ...
1
vote
1answer
114 views

How can I create a new frame that does not inherit the splits from an existing frame?

From time to time I like to pop open a new frame (GUI window) with cmd + n which gives me a new frame. However if I create a new frame and I have an existing frame with 2 splits the new frame also is ...
1
vote
1answer
58 views

What is missing to show the desktop-dirname in the frame title? [duplicate]

I tried to get the value of desktop-dirname into the title of a frame: (setq frame-title-format '("%b Desktop: " (car (last (split-string desktop-dirname "/" t))))) The (...
3
votes
2answers
1k views

How to remove the icon in the titlebar?

Setting frame-title-format and icon-title-format to nil does not help.
6
votes
1answer
556 views

Why emacsclient say to quit with C-x 5 0?

As soon as I open emacsclient I found the following message in the minibuffer: When done with this frame, type C-x 5 0, I find it strange that it advices how to close the frame with delete-frame, any ...
1
vote
1answer
491 views

Open a frame for emacs instance via terminal?

Say I have emacs open on one screen and on another I'm working in terminal. I see a file I want to open in emacs. Is there a quick way I could do something like emacs myfile and have a new frame, but ...
1
vote
1answer
136 views

Suspend frame, run a bash command, sleep for a few seconds and come back to emacs

[ I'm using the latest emacs, and always emacsclient with the -nw option in a terminal ] I have this workflow I want to "automate" with an emacs hotkey. I find myself doing this over a hundred times ...
1
vote
2answers
691 views

Keybinding to close frame in Spacemacs

I recently switched from Emacs to Spacemacs because of developing RSI, so I'm trying for Spacemacs keybindings for all common actions. For creating a frame I now use SPC w F. But the only keybinding I ...
0
votes
0answers
66 views

Retaining focus while displaying graphics windows

NB: The Emacs world uses the word frame to refer to what in most other contexts is called window, and uses the word window to describe something else. In this post, however, the word window always ...
1
vote
2answers
486 views

How do I properly maximise a frame?

When I maximise an Emacs frame, it fills almost, but not quite all the available space. I can still wiggle the frame around and a sliver of the desktop beneath is showing. Desktop environment is KDE 5....
1
vote
2answers
239 views

Frame title - path to current file

In my config file, how do I set the frame title so that it shows: The buffer name If a file buffer, show the path to the file without the filename So something like this: .emacs.el -- D:\Dropbox\...
1
vote
2answers
690 views

How to disable margin inside a frame

My emacs frames have an unwanted border, even if maximized: The blue thing at the bottom is the border drawn by the openbox. The dark gray/black interior is Zenburn's background. But what is this ...
0
votes
1answer
74 views

Delete works differently for different users on the same machine (macOS)

I'm totally dumbfounded. I have two users on the same machine running macOS. Both of them have the same .emacs, same iTerm profile. However the "delete" key works correctly as backspace for on one of ...
1
vote
1answer
45 views

Key strokes doesn't work for frames created from terminal on Mac OS

Compiled emacs25.1 from source on MacOS. Emacs works fine when opened by click the icon. But when open it from terminal by emacs or emacsclient -a. All the key stokes is responded in terminal ...
0
votes
1answer
111 views

M-RET to open buffer in new frame in helm-mini?

Is it possible to add a key binding M-RET to helm-mini which would open the selected buffer in a new frame instead of in the current window?
2
votes
1answer
434 views

unable to use C-x o to switch frame focus while in term frame

I cannot use C-x o to switch to another frame while in a term frame. Here are the steps to replicate the issue: press C-x 2 to split frame press C-x o to change focus to new frame press M-x term ...
0
votes
1answer
393 views

Run magit command in other-window/frame?

Is there a way to run magit commands so that the the command is run within a new window or a different frame? For example, when running magit-log-all-branches (l b) from the magit-status window it ...
2
votes
2answers
101 views

Count only frame opened outside of terminal?

I want to enforce only one GUI instance for Emacs, so I want to check if at least one GUI frame is open or not (i.e. the frame that is open with emacsclient -c), and ignore the ones opened in Terminal....
0
votes
0answers
84 views

Why does make-frame automatically maximize new frames?

FWIW, I'm on Mac OS X running this with emacs -Q: GNU Emacs 25.1.1 (x86_64-apple-darwin15.6.0, NS appkit-1404.47 Version 10.11.6 (Build 15G1108)) of 2016-11-11 If I click the little "maximize" ...
2
votes
3answers
853 views

How to make size of Emacs frame persistent?

When I start Emacs (by clicking on a desktop icon), its frame is too big for the screen, so the mode-line/mini-buffer area is not visible. It's not difficult to resize and reposition the frame, but ...
0
votes
0answers
70 views

How to specify the geometry of the *tex-shell* frame?

I'm using Emacs 24 in Ubuntu 14.04 and when first compiling a TeX file after start up, a frame called *tex-shell* is automatically opened and all further compilation processes run in this frame. I ...
5
votes
1answer
622 views

how to make emacs prompt me before closing the last emacs gui frame when running emacs as a daemon?

I know that if I set: (setq confirm-kill-emacs 'y-or-n-p) Emacs prompts me before I kill it. But I want emacs to prompt me before I close my last gui frame (prompting me before killing any frame ...
4
votes
2answers
1k 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
0answers
82 views

Weird emacs graphics on popup windows

I have emacs 25.1.1 installed on my kubuntu 16.10 with gtk-3.18.9. Those popup messages that you get with emacs when you exit without saving: Those are looking very strange and taking up my full ...
2
votes
0answers
67 views

make-frame-on-display & emacsclient fail w/ exported display while other apps are fine

I am connecting to my office GNU/Linux box from a windows laptop through a putty ssh tunnel. I have also on the laptop the java WeirdX X11 server, that is declared in putty to use the localhost:2 (...
4
votes
1answer
183 views

Stop ERT results frame from stealing focus

I've set up ert test results to display in a separate frame, if one exists, and in a bottom side-window otherwise: (add-to-list 'display-buffer-alist '("\\`\\*ert\\*\\'" (...
2
votes
1answer
177 views

Error loading new emacsclient frame

Recently I was looking for run emacs as daemon in linux, whats give me the oportunity to use org-carture from everywhere in the sistem for example. My first aproach was start it in the init.el file, ...
1
vote
1answer
137 views

How to show process in another already opened frame?

I have two frames opened in emacs (one in each monitor, but this is irrelevant). I would like to have a lisp function to switch the buffer in the other frame (in the other monitor), whose focus is in ...
2
votes
1answer
375 views

How do I make sure a frame is fullscreen?

The command #'toggle-frame-fullscreen does exactly what it says; it toggles between fullscreen and not. What command can I run to make sure the frame is fullscreen? That is, if not fullscreen, make ...
3
votes
4answers
2k views

Switch to a neighboring frame?

How can I move focus from currently focused frame to a neighboring frame-- e.g. right next frame-- via a keyboard shortcut? I'd like to cycle through frames in "z" direction. If I had frames a to h ...
2
votes
0answers
68 views

emacsclient -c new frame cannot have an individual new sr-speedbar

Since emacsclient depends on emacs server, when I first start emacs server and then try: emacsclient -c -n -a emacs --eval "(sr-speedbar-open)" It reports that sr-speedbar is arlready opened. Is it ...
0
votes
1answer
209 views

How to check if there exists a frame in which a given buffer is visible

this question is related to the question How to know my buffer's visible/focused status?. I would like to check if there exists a frame in which a given buffer is visible. I tried the following ...
1
vote
1answer
218 views

Switching between sets of buffers [duplicate]

I often work with Tmux and I really like the ability to have multiple windows where each window has a custom set of panes. This allows me to quickly switch between layouts without losing anything. So ...
3
votes
1answer
283 views

How to kill all duplicates of the current frame

The command make-frame creates a duplicate frame of a given frame. Is there a reverse command which kills all duplicates (if any) of the current frame? More precisely assume that the current frame ...
0
votes
0answers
49 views

Correct commandline options (by pure elisp) for emacsclient to create a new frame only if the file is not already open otherwise switchs to it

If I invoke emacsclient with emacsclient -na runemacs file1 emacsclients switch to the frame containing file1. But if later I invoke emacs with emacsclient -na runemacs file2 emacsclient opens file2 ...
1
vote
0answers
40 views

Calling `doc-view-goto-page` in other buffer

I'm trying to control paging of a PDF file in doc-view mode. Say we have the following snippet (let ((origin-frame (window-frame))) (with-selected-frame (make-frame-command) (let ((pdf-buffer (...