From b72044c1138a24239123d337dbc7c181fbaafa9c Mon Sep 17 00:00:00 2001 From: Marco Rebhan Date: Wed, 26 Jul 2023 00:34:53 +0200 Subject: [PATCH] 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. --- nixos/modules/services/editors/emacs.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/editors/emacs.nix b/nixos/modules/services/editors/emacs.nix index 2be46e47d64c..fe3a10159794 100644 --- a/nixos/modules/services/editors/emacs.nix +++ b/nixos/modules/services/editors/emacs.nix @@ -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;