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
6
votes
1answer
494 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
390 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
133 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
586 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
62 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
405 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
224 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
545 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
70 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
98 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
389 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
366 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
95 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
79 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
657 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
60 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 ...
4
votes
1answer
506 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
80 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
55 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
149 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
159 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
120 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
329 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
64 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
181 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
206 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
263 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 (...
1
vote
2answers
139 views

Disable all keymaps for a specified buffer?

I am creating a new, special kind of buffer that I am using to display messages. I want to disable all keymaps within this new buffer. This special buffer could be created at any time, and therefore, ...
8
votes
2answers
3k views

How i can open shell in current buffer?

In function "shell" this line display shell buffer and almost always its open new shell in random frame. And I have to swap the buffers, it's annoying. ... (pop-to-buffer buffer) ... In docs says: ...
0
votes
0answers
194 views

how to mantain one current working directory for each window config in eyebrowse mode?

I'm using eyebrowse-mode and I want to mantain a separte current-working directory for each eyebrowse-window-config. I would like that window-config-1 had it's own current working directory, so that,...
1
vote
1answer
157 views

Close error list automatically after latex compiled successfully

If I compile my latex document in auctex, an overview window of the errors pops up where I can select specific errors and jump to that source code position. However after fixing the errors and ...
3
votes
0answers
214 views

Emacs Fixed Layout

Background Used vim for 15+ years. Currently using Emacs + Evil + Cider (Clojure). My Ideal Workflow (this part is not the question -- merely describing my ideal workflow) Three vertical panes. +--...
0
votes
0answers
121 views

Is it possible to keep window set up when connecting via emacsclient?

I love using Emacsserver and Emacsclient, as it saves all of my buffers so that if I log in via ssh and then log out, all of my buffers are saved. However, when I log into Emacsserver after quitting ...
0
votes
0answers
86 views

open the shell buffer in the same frame as compilation buffer — C compilation

I'm regularly compiling some C programs and one thing is annoying : after I've compiled, I'm opening a shell with M-x shell ./foo, but the shell open in place of the source code's window. I would ...
1
vote
1answer
71 views

Emacs reopens all frames in current virtual desktop, not in each correct one

I am using emacs for OSX (GUI, not the terminal). I use desktop-save in order to save my workflow when closing emacs. All works fine except when I use OSX virtual desktop: if I open emacs in "Virtual ...
1
vote
3answers
951 views

Can Emacs 25 use the new macOS Sierra tab features?

Can Emacs 25 on macOS leverage the new tab features introduced in macOS Sierra (10.12)? If not, what is required for it to start supporting tabs?
1
vote
2answers
520 views

Emacs change window fringes (vertical padding)?

I have Emacs 24 running in Linux Mint 18 Xfce. As shown in the picture below by the red arrows, how can I decrease the width of the gray zones that are to the left/right of each Emacs window? The so-...
4
votes
1answer
187 views

Center text in minibuffer/echo area?

Q: is there a way to center the minibuffer/echo area horizontally? I use Emacs in a single, very wide frame split into three windows side by side. I'm usually working in the center window, with the ...
1
vote
1answer
503 views

How to make pop-up window appear in the divided portion of the frame

When using the popwin mode, I notice that the pop-up window always appears at the bottom of the entire frame. For example, given the frame contains two windows, divided vertically, and I am editing ...
0
votes
1answer
47 views

Emacs frame-inherited-parameters only partially work

For the value of frame-inherited-parameters, I normally use (top left width height) so that new frames have the same geometry as (selected-frame). Since switching to Emacs 25.1.1, this no longer ...
3
votes
1answer
116 views

How to make frame inviolable?

I have some frames in emacs window, and I want in one of them having open agenda (org mode) but often emacs replaces me content of this frame (for example if I use list packages, rgrep etc). How to ...
0
votes
0answers
67 views

`raise-frame` not adding frame to `(visible-frame-list)`

I'm running Emacs 24.5.1 as a daemon on Fedora 24 with GNOME 3.20, and am encountering a strange behavior. With two frames, F1 (the initial frame) and G1 (the created frame), if G1 is iconified with ...
0
votes
1answer
71 views

How to re-evaluate transparency when frame-alpha-lower-limit changes?

I configured emacs to be slightly transparent in my init.el (set-frame-parameter (selected-frame) 'alpha '(97 . 85)) (add-to-list 'default-frame-alist '(alpha . (97 . 85))) I wanted to be able to ...
1
vote
0answers
59 views

How to trigger function on particularly named buffer creation?

How does one trigger a function to run when a buffer of a particular name is created? My use case is connecting to freenode with ERC for Emacs related channels. I manually call a function to create a ...
5
votes
2answers
443 views

Can Emacs provide a wide scrollbar (birds-eye view) of code?

Microsoft Visual Studio has a very useful wide scrollbar where you get to see the whole file scaled so it fits vertically. Is there a way to do this in Emacs? I've looked into having a 2nd frame and ...