nixos/emacs: don't set EDITOR to store path
Use emacseditor in PATH instead of using the absolute path to prevent old path from sticking around when switching configurations.
This commit is contained in:
parent
7ce0abe77d
commit
b72044c113
|
@ -96,7 +96,7 @@ in
|
|||
|
||||
environment.systemPackages = [ cfg.package editorScript desktopApplicationFile ];
|
||||
|
||||
environment.variables.EDITOR = mkIf cfg.defaultEditor (mkOverride 900 "${editorScript}/bin/emacseditor");
|
||||
environment.variables.EDITOR = mkIf cfg.defaultEditor (mkOverride 900 "emacseditor");
|
||||
};
|
||||
|
||||
meta.doc = ./emacs.md;
|
||||
|
|
Loading…
Reference in a new issue