Questions tagged [gui-emacs]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
33 views

How do I start non-GUI Emacs on the commandline?

How do I start non-GUI Emacs on the commandline? emacs-no-x11 doesn't seem to be in recent Emacs versions.
Geremia's user avatar
  • 151
0 votes
1 answer
21 views

How can I prevent graphical dialog that says the file has changed since visited or saved?

I don't want the graphical popup, but I'm ok with a mode-line question. Is there any way to disable these graphical popups forever?;)
Jason Hunter's user avatar
0 votes
1 answer
66 views

Where is pixel-scroll-precision-use-momentum described in more detail?

Precision scrolling in Emacs 29 introduces several variables to control the momentum effect while scrolling. Are these terms defined anywhere in more detail, possibly by using a formula or two to ...
StackExchanger's user avatar
0 votes
0 answers
84 views

Erratic font behavior after upgrading from 27.1 to 29.1 related to --no-x-resources

After upgrading Emacs from 27.1 to 29.1 yesterday (both compiled from source without configure settings except for --prefix) I am seeing erratic behavior of the fonts. The issue vanishes, when I start ...
kdb's user avatar
  • 1,561
4 votes
2 answers
505 views

pixel-scroll-precision-mode has no effect

I've just updated to Emacs 29, but running (pixel-scroll-precision-mode 1), even with emacs -Q, doesn't have any visible effect for me. (default-value 'pixel-scroll-precision-mode) evaluates to t but ...
wohanley's user avatar
  • 153
2 votes
1 answer
208 views

How can I detect whether I'm running on a graphical system within early-init.el?

I use GNU Emacs (28.2 (build 2, x86_64-w64-mingw32) of 2022-09-13) on Windows mostly, so I have set some modes in my early-init.el to prevent annoying flickering: (tool-bar-mode -1) ; Setting these ...
Zeta's user avatar
  • 1,093
0 votes
1 answer
76 views

How can I remove extra gray line at left and right margin in Emacs GUI app? [duplicate]

In macOS Monterey I am using Emacs inside iTerm2 and also Emacs.app (as gui). In the Emacs.app itself there is extra space before each line. That is actually caused by a gray line in the margin. => ...
alper's user avatar
  • 1,340
0 votes
2 answers
59 views

Emacs vocabulary: Is there a name describing what is shown when I choose an Emacs-frame-tab?

After executing the Emacs binary I see on a screen (what in common sense is called a window) an Emacs-frame. An Emacs-frame has the [-] [+] [x] icons in the title bar, a menu, a toolbar, a status-bar ...
Claudio's user avatar
  • 440
0 votes
1 answer
156 views

Using the push function to append a list to the default-frame-alist variable

I've noticed some people use this to disable the menu bar in the GUI: (push '(menu-bar-lines . 0) default-frame-alist) and some people use this: (menu-bar-mode -1) Both achieve the same. The first ...
Zoli's user avatar
  • 421
0 votes
0 answers
81 views

`C-x C-;` freezes emacs

This hasn't been happening every time, though once it starts it's consistent while emacs is running at least. It claims to be bound to comment-line as usual, but I can't actually run it through C-h k ...
Lēctia Landau's user avatar
0 votes
1 answer
177 views

How to control inter-paragraph spacing in org-mode?

After reading Org Mode Syntax, my understanding is that blank lines in the content section under a heading are used syntactically to separate paragraphs and that each blank line "belongs" to ...
StackExchanger's user avatar
1 vote
1 answer
94 views

how to copy top header line (`header-line-format`) under X

I have a header-line that displays currently opened file name on top of the buffer window. I can't find a way to copy the text/file name from that header-line if emacs runs under X/gui (selecting with ...
pawciobiel's user avatar
1 vote
0 answers
70 views

How to start tide server in Emacs For Mac OS X?

In the .spacemacs file, typescript configuration layer is dotspacemacs-configuration-layers '( ┆(typescript :variables ┆ ┆ ┆ ┆javascript-backend 'tide ┆ ┆ ┆ ┆typescript-fmt-tool '...
Alpin Cleopatra's user avatar
0 votes
0 answers
45 views

macOS 11.6.3: Emacs acts like control, meta keys are sticking; how to diagnose?

I'm a longtime GNU Emacs and macOS (and GNU Emacs on macOS) user, on a US Gov't owned MacBook Pro (16-inch, 2019) running macOS 11.6.3. For the last few weeks, GUI versions of Emacs are acting as if ...
Chuck Fry's user avatar
  • 101
1 vote
2 answers
241 views

Can the menubar and scrollbar be customized?

In GTK versions of Emacs (or more generally any GUI version of Emacs), can the scrollbar and menubar colors be customized? I can probably change the look of ALL my GTK applications, but when running ...
Arne's user avatar
  • 409
2 votes
1 answer
164 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 ...
memtha's user avatar
  • 137
0 votes
1 answer
110 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 + ...
Miantian's user avatar
  • 105
0 votes
0 answers
153 views

How to create shell aliases in Emacs [GUI] in Windows?

In Linux this can be done by something like: alias cdwww="cd /srv/www" In Windows there is an equivalent command called DOSKEY, used for example like this: doskey ls=dir $* The above works ...
W.M.'s user avatar
  • 113
3 votes
1 answer
161 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 ...
n0542344's user avatar
  • 185
0 votes
1 answer
98 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 ...
nate's user avatar
  • 63
0 votes
1 answer
477 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 ...
scribe's user avatar
  • 1,025
0 votes
0 answers
2k views

WSL: emacs gui won't start

I'm on Windows 10 Pro 10.0.21337 (windows insider program) and installed WSL with Ubuntu 20.04. From within ubuntu I said apt-get update apt-get upgrade apt-get install emacs dpkg -l emacs -> ||/ ...
user829755's user avatar
1 vote
1 answer
219 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 ...
Arch Stanton's user avatar
  • 1,625
0 votes
1 answer
34 views

mouse click in margins to move point (gui macos) rather than error?

Currently, I have text modes configured with wide margins for readability with (defun text-margins () (setq left-margin-width 16) (setq right-margin-width 16)) (add-hook 'text-mode-hook 'text-...
Paul Gowder's user avatar
0 votes
1 answer
127 views

Blank menus with Athena / Lucid

I compiled Emacs 27.1 with --with-x-toolkit=lucid, now the menus are blank. I tried setting the colors in ~/.Xresources: Emacs.pane.menubar.background: black Emacs.pane.menubar.foreground: white Emacs....
tastytea's user avatar
  • 105
3 votes
0 answers
2k views

Emacs daemon does not load my init.el completely but plain emacs does

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 ...
ali b's user avatar
  • 173
0 votes
1 answer
323 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 ...
TerryTsao's user avatar
  • 1,216
0 votes
0 answers
202 views

I need help for the Emacs in GUI in Macos catalina since it is opening only in terminal

I have macOS Catalina. I just installed emacs 27. version but it's only in the terminal not in a different display of its own (i think that is called GUI). Please suggest for GUI.
Rakesh Kumar's user avatar
2 votes
0 answers
138 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 ...
PythonNut's user avatar
  • 10.3k
0 votes
1 answer
282 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 ...
Arnab Majumdar's user avatar
0 votes
1 answer
193 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 ...
Ashton Wiersdorf's user avatar
0 votes
0 answers
118 views

Emacs font has extra spaces between letters

I haven't used my emacs setup for a while and now when I open emacs it looks like this: The extra spacing between the letters does not disappear when I use emacs -q to load emacs without the config. ...
Hantabaru's user avatar
1 vote
1 answer
2k 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 ...
user2965433's user avatar
1 vote
0 answers
598 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 ...
mle0312's user avatar
  • 295
2 votes
0 answers
519 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 ...
niconii's user avatar
  • 29
0 votes
0 answers
68 views

Show a prompt dialog with a timeout

As expected, the following dialog box expires after five seconds under Linux: (progn (setq last-nonmenu-event nil) (y-or-n-p-with-timeout "Proceed? " 5 nil)) However, it lasts forever under ...
antonio's user avatar
  • 1,802
1 vote
0 answers
173 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 ...
Joe's user avatar
  • 551
1 vote
0 answers
71 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 ...
NOP's user avatar
  • 111
0 votes
0 answers
193 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 ...
andreas-h's user avatar
  • 1,559
4 votes
2 answers
366 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-...
ideasman42's user avatar
  • 8,726
0 votes
1 answer
482 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 ...
Lucas Liseth's user avatar
0 votes
2 answers
992 views

How to change the language of the menu on GUI version

how to change language of the menu? I go to Options > multilingual envi... > set language ...; but nothing happends.
user avatar
1 vote
1 answer
465 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/...
Sean Allred's user avatar
  • 6,901
1 vote
1 answer
1k 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 ...
Sean Allred's user avatar
  • 6,901
4 votes
1 answer
2k views

How to make everything except the text transparent?

How to make everything except the text transparent?
HappyFace's user avatar
  • 830
0 votes
1 answer
718 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 ...
miro2's user avatar
  • 1
5 votes
1 answer
2k 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.
valignatev's user avatar
1 vote
2 answers
965 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 ...
WilliamKF's user avatar
  • 393
6 votes
1 answer
3k 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 ...
Eka's user avatar
  • 173
2 votes
0 answers
123 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 ...
rien333's user avatar
  • 123