From b769bb8dae71065361b86eda7fab6cc9362ed71b Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Thu, 5 Oct 2023 22:38:15 +0200 Subject: [PATCH] pinwheel: Set `EDITOR` and `VISUAL` to `emacsclient` --- hosts/pinwheel/modules/emacs/default.nix | 5 +++++ hosts/pinwheel/modules/zsh/default.nix | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/pinwheel/modules/emacs/default.nix b/hosts/pinwheel/modules/emacs/default.nix index 921fef1..8e5da8c 100644 --- a/hosts/pinwheel/modules/emacs/default.nix +++ b/hosts/pinwheel/modules/emacs/default.nix @@ -22,6 +22,11 @@ in package = emacs; }; + home.sessionVariables = { + EDITOR = "${e}/bin/e"; + VISUAL = "${e}/bin/e"; + }; + home.packages = [ e emacs diff --git a/hosts/pinwheel/modules/zsh/default.nix b/hosts/pinwheel/modules/zsh/default.nix index c470590..8241c8f 100644 --- a/hosts/pinwheel/modules/zsh/default.nix +++ b/hosts/pinwheel/modules/zsh/default.nix @@ -40,7 +40,6 @@ ]; envExtra = lib.strings.concatStringsSep "\n" [ - "EDITOR=vim" "BROWSER=firefox" ];