git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #18244 from DamienCassou/emacs-gtk_data_prefix

emacs module: Fix to get properly themed GTK apps

commit6dc9ed317c3d9a42818b76dadaab32ec37b2a040 authorDamien Cassou <damien@cassou.me> dateThu 8 Sep 2016, 09:05 (10 years ago) parent02bda5df96cd1e
1 file changed+7−3
nixos/modules/services/editors/emacs.nix+7−3
nixos/modules/services/editors/emacs.nix+7−3
@@ -79,9 +79,13 @@ in {
7979
8080 environment.systemPackages = [ cfg.package editorScript ];
8181
82− environment.variables = if cfg.defaultEditor then {
83− EDITOR = mkOverride 900 "${editorScript}/bin/emacseditor";
84− } else {};
82+ environment.variables = {
83+ # This is required so that GTK applications launched from Emacs
84+ # get properly themed:
85+ GTK_DATA_PREFIX = "${config.system.path}";
86+ } // (if cfg.defaultEditor then {
87+ EDITOR = mkOverride 900 "${editorScript}/bin/emacseditor";
88+ } else {});
8589 };
8690
8791 meta.doc = ./emacs.xml;