about summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs
diff options
context:
space:
mode:
authoradisbladis <adisbladis@gmail.com>2022-09-03 15:10:04 +1200
committeradisbladis <adisbladis@gmail.com>2022-09-03 15:31:45 +1200
commitc1861b665856697fb01a6d7a273d2b85f6a92f01 (patch)
tree58d2746ad0d496f9008913f81870b70281882534 /pkgs/applications/editors/emacs
parent86e303475ea7687abf706bdb9382056211176551 (diff)
downloadnixlib-c1861b665856697fb01a6d7a273d2b85f6a92f01.tar
nixlib-c1861b665856697fb01a6d7a273d2b85f6a92f01.tar.gz
nixlib-c1861b665856697fb01a6d7a273d2b85f6a92f01.tar.bz2
nixlib-c1861b665856697fb01a6d7a273d2b85f6a92f01.tar.lz
nixlib-c1861b665856697fb01a6d7a273d2b85f6a92f01.tar.xz
nixlib-c1861b665856697fb01a6d7a273d2b85f6a92f01.tar.zst
nixlib-c1861b665856697fb01a6d7a273d2b85f6a92f01.zip
emacs: Switch to lucid as the default toolkit
Because of long standing bugs and stability issues & an
uncollaborative upstream there has been talk on the emacs-devel
mailing list to switch the default toolkit to
Lucid (https://lists.gnu.org/archive/html/emacs-devel/2022-08/msg00752.html).
The GTK build also has issues with Xinput2, something that both we and
upstream want to enable by default in Emacs 29.

This situation has prompted me to use both Lucid an no-toolkit (pure X11) Emacs
as a daily driver in recent weeks to evaluate what the
advantages/drawbacks are and I have concluded that, at least for me,
switching the toolkit to Lucid is strictly an upgrade.
It has resulted in better stability (there are far fewer tiny UX
issues that are hard to understand/identify) & a snappier UI.
On top of that the closure size is reduced by ~10%.

In the pure X11 build I noticed some unsharpness around fonts so this
is not a good default choice.

As with everything there is a cost, and that is uglier (I think most
would agree but of course this is subjective) menu bars for
those that use them and no GTK scroll bars.

For anyone who still wants to use GTK they could of course still
choose to do so via the new `emacs-gtk` attribute but I think this
is a bad default.

A note to Wayland users:
This does not affect Wayland compatibility in any way since that will
already need a PGTK build variant in the future.
Diffstat (limited to 'pkgs/applications/editors/emacs')
-rw-r--r--pkgs/applications/editors/emacs/generic.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/applications/editors/emacs/generic.nix b/pkgs/applications/editors/emacs/generic.nix
index 4243ad47a243..69061f044f34 100644
--- a/pkgs/applications/editors/emacs/generic.nix
+++ b/pkgs/applications/editors/emacs/generic.nix
@@ -18,7 +18,7 @@
 , withX ? !stdenv.isDarwin
 , withNS ? stdenv.isDarwin
 , withGTK2 ? false, gtk2-x11 ? null
-, withGTK3 ? true, gtk3-x11 ? null, gsettings-desktop-schemas ? null
+, withGTK3 ? false, gtk3-x11 ? null, gsettings-desktop-schemas ? null
 , withXwidgets ? false, webkitgtk ? null, wrapGAppsHook ? null, glib-networking ? null
 , withMotif ? false, motif ? null
 , withSQLite3 ? false