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:
Marco Rebhan 2023-07-26 00:34:53 +02:00
parent 7ce0abe77d
commit b72044c113
No known key found for this signature in database
GPG key ID: C8D0FBE381A29D36

View file

@ -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;