Questions tagged [gui-emacs]

For questions about the GUI version of emacs, as opposed to the terminal version.

Filter by
Sorted by
Tagged with
14
votes
4answers
12k views

On Linux why should one choose Lucid over Gtk gui for emacs?

I run Ubuntu 16.04. On searching Ubuntu Software app for Emacs I am presented with two guis, Lucid and Gtk. Which one should I choose and why?
6
votes
2answers
562 views

What is this square in the middle of the emacs' GUI?

I wonder how could I disable this annoying square which seems like it's zooming in the text under the emacs' cursor. How can I get rid of it? And what is this exactly? I am on emacs 24.5 (homebrew ...
6
votes
1answer
2k views

How to customize emacs toolbar?

Let say I want to add a Toolbar icon to emacs which when clicked should "Select all" text in the current window. We know for selecting text we can use M-x mark-whole-buffer. How can I use this ...
5
votes
1answer
4k views

GUI Emacs sets the exec-path only from Windows environment variable but not from .emacs file

I use Emacs 25.1 on my Windows XP laptop both as a command-line app (on ConEmu terminal emulator with MSYS bash as the shell) and as the GUI Emacs. I mainly use Emacs to test and compile programs, so ...
4
votes
1answer
793 views

How to make GUI Emacs use all available space when running maximized on linux?

GUI Emacs running maximized on my Linux (centos7+kde) is not using all the available space leaving some space around the borders, specially at the top and the bottom. Sample of GUI emacs running "...
4
votes
1answer
455 views

how to tell graphical Emacs to shutdown cleanly from tty1?

problem Lately I run GNU Emacs mostly as GUI on X/tty7 (which I'll call "the desktop" as opposed to emacs-desktop) on one of my Debian laptops. Occasionally the desktop hangs, in which case I usually ...
4
votes
1answer
1k views

Disable all GUI popups and tooltips

Can I disable this kind of a popup? I couldn't find anything besides (setq x-gtk-use-system-tooltips nil), but it didin't help me unfortunately.
4
votes
1answer
750 views

What's this line between the modeline and the echo area?

I'm using a dark theme, so it's a bit hard to see, but there is a black line between the modeline and the echo area in the shot above. You can also see it between the modeline and a hydra, and the ...
3
votes
1answer
470 views

Detecting availability of SVG?

For a few years Emacs has had SVG support, however I don't know of a reliable way to detect it, before using it. How can we detect in EmacsLisp, SVG rendering ability in the current Emacs GUI (X/NS/...
3
votes
1answer
317 views

Obtain absolute pixel position of point

I'd like to obtain the absolute pixel position of the point (i.e. the cursor, not the mouse pointer) in the current buffer in a GUI frame, to pass it onwards to an external program. I don't mind ...
3
votes
1answer
982 views

How to make everything except the text transparent?

How to make everything except the text transparent?
3
votes
2answers
225 views

How to scroll immediately by a pixel offset?

I was looking for a replacement to scroll-up / scroll-down that operates in pixel units. pixel-scroll-mode animates the scroll, I didn't see any functions that apply an offset directly. set-window-...
3
votes
2answers
940 views

How can I initialize all environment variables in OSX?

If I start GUI emacs in OSX (not from the terminal) it does not know about my user environment variables. The exec-path-from-shell package mostly solves this, but while you can explicitly initialize ...
2
votes
1answer
34 views

Disable 'beautification' of text when point is on same line in org

When writing org documents, some parts of the text (like links and figures) automatically get 'beautified' (I'm unsure what the technically correct term is), meaning that some surrounding text ...
2
votes
1answer
32 views

preview and edit side-by-side, maybe by syncronizing buffers?

Many major modes provide a function to switch between editing and preview rendering a file. I am specifically looking at ps-mode but an answer that applies to others would be nice. I can open the same ...
2
votes
1answer
270 views

redraw-display when focused

I am using Emacs 25 in SUSE linux and when I switch to a workspace where Emacs is the front window almost none of the text is visible. I have to call redraw-display in order to get it refresh the ...
2
votes
1answer
1k views

How do I configure home-brew-provisioned emacs to run a GUI-based emacsclient properly?

Configuration MacOSX 10.11.5 emacs version 24.5.1 brew 0.9.9 I want to have the following behavior in my emacs setup: At login, automatically start an emacs server process. Running the /Application/...
2
votes
2answers
2k views

Fish shell looks weird in spacemacs

Any other shell besides eshell and shell in Spacemacs with Emacs v25.1.1 (GUI version) looks like this: To compare, the terminal in iTerm looks like this: The font that I use in my terminal is ...
2
votes
0answers
225 views

emasc daemon does not load my init.el completely but emacs do

When I run emacs, everything is Ok, my init.el is read. However, after starting a daemon (emacs --daemon), an emacsclient GUI frame (emacsclient -c) is not configured for the following setting: font ...
2
votes
0answers
88 views

Process sentinels don't run during init in GUI Emacs

Ok, this issue I'm running into seems pretty weird. I'm running an async process during init and I have set a process sentinel to tell me when it exits. This works fine in terminal Emacs but in GUI ...
2
votes
0answers
212 views

Is it possible to override the column width in Emacs?

I'm using graphical GNU Emacs 26.3 on Windows. At least on Windows, Emacs determines column width by looking at the AveCharWidth field in the font's OS/2 table. As the name suggests, this field ...
2
votes
0answers
81 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 ...
2
votes
0answers
100 views

Resize windows line by line, not pixel by pixel

Is it possible enforce that Emacs changes the window size line by line, not by some count of pixels, to eliminate the situation when I see a half-line on the screen? I mean window in Emacs sense (...
2
votes
0answers
233 views

How does one set input-decode-map on GUI frames in emacsclient?

I'm trying to adjust bindings in input-decode-map (to distinguish C-m and RET in GUI mode). None of the advice given on Stack Overflow, gnu.emacs.help, Reddit, or Super User seems to work. I ended ...
1
vote
2answers
387 views

Stop GNU Emacs (GUI) on macOS from quitting

Is it possible to stop Emacs on macOS from quitting? This may sound like a weird request, but numerous times I may accidentally quit Emacs and the whole GUI app exits -- which means I then have to ...
1
vote
2answers
634 views

How can I view accent characters natively?

In GUI emacs 25.3.1, I have a text file with octal character codes for accents. For example I have many \212 characters which are really Š characters. If I replace-string the occurrences, it shows ...
1
vote
1answer
87 views

Ignore spurious focus events for after-focus-change-function

I'm on Emacs 27.1, Fedora 33, GNOME 3.38.2. In the latest NEWS it is reported that The hooks focus-in-hook and focus-out-hook are now obsolete. Instead, attach to after-focus-change-function using ...
1
vote
1answer
46 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 ...
1
vote
1answer
499 views

Run Emacs in GUI mode without X over SSH

With Emacs 26.1 installed on a Linux RedHat flavour without X, I want to run Emacs GUI over an SSH connection with X11 forwarding and Xming server on client. Since there is no X on the machine, Emacs ...
1
vote
1answer
428 views

In non-terminal Emacs, how do I make new frame open within the same OS window?

Basically, I would like GUI emacs to replicate the terminal behavior, where a new frame is opened within the same (OS) window. This would work similar to vim's tabs, which are just a way to move ...
1
vote
0answers
328 views

Activate doom mode line theme on non doom theme

I would like to use a non doom theme on Emacs but I like the doom mode line. The problem is if I use a non doom dark theme, say Charcoal-Black, and activate doom mode line, then doom mode line is ...
1
vote
0answers
82 views

How can I stop Emacs from grabbing focus at startup?

I typically start GUI Emacs on macOS, https://bitbucket.org/mituharu/emacs-mac/overview, installed via Nix package manager, as part of a larger startup script on the terminal (iterm). While Emacs is ...
1
vote
0answers
50 views

emacs: Work out which monitor is the primary one

Is there a way to programatically work out which display is considered the "primary" display for X within emacs? I've managed to get a function working that determines if the machine has more than ...
1
vote
1answer
323 views

Emacs crashes on resize every time starting under X11/GTK3

I just built emacs with X11 support on Debian, but every time I start it, the window pops up and works just fine until I resize the window, at which point it crashes. user@host:~/emacs-26.1$ ./src/...
1
vote
0answers
356 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. ...
1
vote
0answers
525 views

"<t> is undefined" error on first keypress

So here's a pretty weird issue. Sometimes, when I start my emacs and press a key combination, the message <t> is undefined` gets printed in the echo area, and I need to press the key combo again....
1
vote
0answers
242 views

Monospaced font not lining up

On the 2016 MacBook Pro, monospaced fonts are not lining up. It happens to just some buffers and can only be fixed by changing the default font size then changing it back. My font setting is: '(...
1
vote
0answers
92 views

Match paren problem in the GUI version of Emacs

I use the built in parentheses match (show-paren-mode t). But there seems to be somewhat of a glitch when it highlights the matching parentheses, because it moves the bottom lines further apart when ...
0
votes
2answers
1k views

How to check if my emacsclient is running in a GUI window?

Emacs version: 25.3.50.2 I'm using Fira Code font whose ligatures are now supported by Emacs. To solve this, I used this solution (I think it's not important, just to inform you), say, replacing the ...
0
votes
1answer
136 views

Why unicode 🂩 (poker card) can't be properly displayed in GUI but fine in TUI?

I'm having a hard time getting unicode to properly displayed in GUI. I'm trying to type poker cards unicode inside emacs GUI, 🂩 for instance. I would like to use font "Ubuntu Mono", NOT ...
0
votes
1answer
98 views

Building Emacs from source doesn't generate a native application on macOS Catalina

I've been trying to build Emacs 28 from source on my MacBook Pro running macOS 10.15.5. I managed to get the feature/native-comp branch working, but I found it to be too unstable, so I deleted Emacs ...
0
votes
1answer
742 views

How can I tell if emacs was built with X support?

Is there a variable like system-configuration-options that will provide the computed features of the running emacs? Specifically, I'm looking for X support (--with-x=yes|no). Ultimately I'm trying ...
0
votes
2answers
1k views

How to use OSX command line GUI emacs as git $EDITOR

I have a script to launch OSX GUI emacs from command line at: /usr/local/bin/emacs The script looks like: #!/bin/sh $(/Applications/Emacs.app/Contents/MacOS/Emacs --chdir $PWD "$@") & I have ...
0
votes
1answer
31 views

How to avoid paste to system clipboard when use Emacs For Mac OS X?

When use Emacs For Mac OS X, copy a string from browser(E.g. B) then paste into it, it works. But if use ciw(vim mode) on a string(it's the same as copy a string inside the tool, E.g. A), then Ctrl + ...
0
votes
1answer
31 views

Restore privileged folder access for previously working Emacs.app on Catalina (NOT system upgrade)

This is similar to How to Restore File System Access in macOS Catalina but the problem is different. I did not upgrade my operating system, only the app, and none of the solutions there are valid ...
0
votes
1answer
108 views

Emacs not being scaled properly?

I had to reinstall my OS but I made a backup of my .emacs.d. Then, once the new OS was installed, I copied it back and installed all the fonts. This time however, the scaling is really small! With the ...
0
votes
1answer
234 views

Long message showing up while opening emacs from command line in ubuntu 20.04

A long message appears every time I open emacs from the command line. I am currently using ubuntu 20.04. The message that appears every time, is shown at the end. It would be very helpful if someone ...
0
votes
1answer
313 views

Weird behavior: GUI won't start, but terminal emacs will

As I said in the title, I'm having a problem with starting Emacs, whenever I try to start it with rofi, nothing happens, and when I try and start with terminal (using emacs), it returns "Args out of ...
0
votes
1answer
545 views

Retain system color scheme when running without GUI

I'm typically running emacs -nw: problem is that Emacs overrides terminal (bash) color scheme and uses it's own default one which is in some cases unreadable. I would like emacs to use default ...
0
votes
1answer
386 views

global-set-key not working in terminal

I have the following line in my .emacs.d/init.el file (global-set-key [(control tab)] 'other-window) ;; remap f1 to undo (global-set-key (kbd "<f1>") 'undo) When I use the full X-window GUI ...