Questions tagged [gtk3]

Since Emacs 24.3 the default X toolkit is Gtk+ version 3 (the GIMP ToolKit). This uses a configuration system based on a CSS-like syntax.

Previously, Emacs 23.1 made the default X toolkit "The GIMP ToolKit", Gtk+ version 2, and there is some documentation at gnu.org on how to configure this for Emacs.

However, from Emacs 24.3 this changed to Gtk+ version 3 which has a completely different configuration system based on a CSS-like syntax. There is generic documentation for gtk3, but no simple examples for configuring Emacs.

24 questions
28
votes
2 answers

How to change the frame title from `emacs@host` to visited file name

I am using Emacs 24.5.1 on OpenSUSE Tumbleweed, with Gnome 3.16, and the title of the GTK window with Emacs in it is always emacs@hostname. How can I change it to the name of the current file I'm editing?
Sean
  • 383
  • 3
  • 5
16
votes
2 answers

Can I take vector (SVG) screenshots of Emacs?

The gtk-vector-screenshot program can be used to take vector screenshots of Gtk-3 applications. It seems to work by asking the application to redraw itself onto an SVG canvas. Emacs on GNU/Linux can be built with Gtk+, but trying to use the…
Clément
  • 3,924
  • 1
  • 22
  • 37
6
votes
1 answer

Emacs 26.1 RC1 display issues over SSH/X11 with xming/vcxsrv

I can compile Emacs 26.1 RC1 ok, and use it locally on the host fine. However, when attempting to ssh -X to host via PuTTY 0.70 and launch the Emacs gui, emacs is not displaying correctly. See screenshot below - no default welcome screen, and…
bscipio
  • 181
  • 5
3
votes
0 answers

How to change the line height in the menu

Here "menu" means something which appears when you hit F10. (Not the menubar.) Because my display is small, several options are hidden below. (See the following image. You can not see "Quit".) This is sometimes annoying me, so I would like to make…
H. Shindoh
  • 141
  • 3
2
votes
2 answers

replacement for `emacs -xrm Xft.embolden:true -fn Hack-13` for emacs 27.1

For last 2 years (2018-) I've been using emacs -xrm Xft.embolden:true -fn Hack-13 to start emacs w/ suitable sized and 'brightness'ed fonts for me in my systems. What that does gives extra boldness to font glyphs in every weights used. That has…
2
votes
2 answers

Preload problem: Emacs as daemon in X

Background: I want to use emacs like tmux which can run as persistent session as well as shorten the time for me to start bringing up emacs when I want to (as inspired by these: Emacs and a Tmux replacement and Detaching and re-attaching to emacs…
menuhin
  • 315
  • 2
  • 11
2
votes
1 answer

Cannot generate previews with latex-preview

I am trying to use preview-latex but, when I generate previews, these are not loaded in Emacs gtk buffer, even though previews are correctly produced in the .pdf output file. The error produced is the…
2
votes
1 answer

The status of Xwidgets and webkitgtk?

When I want to try some packages that need xwidgets, I found Arch linux's default Emacs has not Xwidgets support. This is not the only distribution that doesn't include Xwidgets in compiling Emacs. I saw Debian had the same issue before as well. I…
Wei-Ting
  • 23
  • 2
1
vote
1 answer

GTK segfault when using xwidgetson emacs27.2

Im trying to use emacs-27.2 with xwidgets support on a Ubuntu 20.04.4 LTS x86_64 machine.Im using a doom emacs config but every time i launch application that needs xwidgets support (i.e org-roam-ui ) i get the following error: Overriding existing…
Occhima
  • 11
  • 1
1
vote
2 answers

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 Emacs with a dark theme I might want to ONLY…
Arne
  • 409
  • 3
  • 12
1
vote
0 answers

Using an Emacs frame as a GTK widget?

I've been brainstorming some ideas towards developing some IDE support for developing with the Ruby programming language and Emacs. I was considering a possibility of using an Emacs frame as a UI widget in a Ruby application on X Windows platforms.…
Sean Champ
  • 60
  • 5
1
vote
1 answer

When compiling Emacs on RHEL8 should I better bind to GTK3 or GTK2?

I am compiling Emacs 27.1 on a RHEL8 Linux box. This RHEL system is a remote system I log in from my Windows machine using MobaXterm (Personal Edition V12.1) on the Windows machine as X server. On this new-ish RHEL system GTk2 and GTK3 is…
halloleo
  • 1,215
  • 9
  • 23
1
vote
0 answers

Cedilla (ç) not being mapped correctly only on Emacs, how do I map it correctly? And why is this happening?

I've been using the US International keyboard layout for typing the cedilla character (ç) — and other Portuguese characters; and other bizarro other accidental ones — for a while, and it works on basically all of my applications. In order to…
1
vote
2 answers

Emacs 24.3 and 26.3 scrollbars refuses to move up if not moved up immediately, on various OS's and X-servers

The problem manifests on: Emacs 26.3 on Fedora Release 31, using Xming on Windows 7 as X server, whether in -Q mode or not Emacs 24.3 on RHEL7, using MobaXterm 12.2 4204, whether in -Q mode or not The scrollbar I'm seeing is a medium-dark…
Swiss Frank
  • 247
  • 1
  • 10
1
vote
0 answers

ibus-libpinyin input not working in fullscreen emacs

I'm using GTK emacs 26.3 on GNOME 3.34 using X. When emacs is fullscreen, ibus-libpinyin is unable to render the pinyin suggestions. Input seems to still be working (i.e when I press a number a chinese character appears) but the suggestions fail to…
extremeaxe5
  • 639
  • 3
  • 10
1
2