From b19858e6bb2d5f0a5455d39f3d5649b9137ea96e Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 12 Feb 2025 09:16:59 +0000 Subject: [PATCH] Set VISUAL as well as EDITOR variables Resolve Emacs in VISUAL and EDITOR --- system/home/emacs/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system/home/emacs/default.nix b/system/home/emacs/default.nix index df66f550..d2251d6f 100644 --- a/system/home/emacs/default.nix +++ b/system/home/emacs/default.nix @@ -1,5 +1,6 @@ { pkgs, + config, ... }: { @@ -10,7 +11,10 @@ ../texlive/default.nix ../programming/default.nix ]; - home.sessionVariables.EDITOR = "emacs"; + home.sessionVariables = with config.programs; { + EDITOR = "${emacs.finalPackage}/bin/emacs -nw"; + VISUAL = "${emacs.finalPackage}/bin/emacs"; + }; programs.emacs = { enable = true; package = pkgs.emacs30.override {