git.iko.soy/typeable/nixpkgs
on master help sign in
emacs module: Fix to get properly themed GTK apps
commitf96cd1ea642c6a3f639f8bf9499ac34451afc6b3 authorDamien Cassou <damien@cassou.me> dateSat 3 Sep 2016, 08:25 (10 years ago) parent6b20d5b
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;