mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
emacs module: Fix to get properly themed GTK apps
This commit is contained in:
parent
6b20d5b75e
commit
f96cd1ea64
1 changed files with 7 additions and 3 deletions
|
@ -79,9 +79,13 @@ in {
|
|||
|
||||
environment.systemPackages = [ cfg.package editorScript ];
|
||||
|
||||
environment.variables = if cfg.defaultEditor then {
|
||||
EDITOR = mkOverride 900 "${editorScript}/bin/emacseditor";
|
||||
} else {};
|
||||
environment.variables = {
|
||||
# This is required so that GTK applications launched from Emacs
|
||||
# get properly themed:
|
||||
GTK_DATA_PREFIX = "${config.system.path}";
|
||||
} // (if cfg.defaultEditor then {
|
||||
EDITOR = mkOverride 900 "${editorScript}/bin/emacseditor";
|
||||
} else {});
|
||||
};
|
||||
|
||||
meta.doc = ./emacs.xml;
|
||||
|
|
Loading…
Reference in a new issue