From cdb34a08daa5c4fc21b93eb6a46f895815f5887b Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 29 Sep 2021 23:42:50 +0200 Subject: [PATCH] home: only mark emacs as editor if enabled --- home/emacs.nix | 4 ++++ home/env.nix | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/home/emacs.nix b/home/emacs.nix index 34d4dab..af4d593 100644 --- a/home/emacs.nix +++ b/home/emacs.nix @@ -5,6 +5,10 @@ }; config = lib.mkIf config.my.home.emacs.enable { + home.sessionVariables = { + EDITOR = "emacsclient -t"; + }; + home.packages = with pkgs; [ sqlite # needed by org-roam diff --git a/home/env.nix b/home/env.nix index c678b36..e196dd9 100644 --- a/home/env.nix +++ b/home/env.nix @@ -5,8 +5,4 @@ "${config.home.homeDirectory}/.cargo/bin" "${config.home.homeDirectory}/.local/bin" ]; - - home.sessionVariables = { - EDITOR = "emacsclient -t"; - }; }