home: only mark emacs as editor if enabled

This commit is contained in:
Antoine Martin 2021-09-29 23:42:50 +02:00
parent 4604e5861a
commit cdb34a08da
2 changed files with 4 additions and 4 deletions

View file

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

View file

@ -5,8 +5,4 @@
"${config.home.homeDirectory}/.cargo/bin"
"${config.home.homeDirectory}/.local/bin"
];
home.sessionVariables = {
EDITOR = "emacsclient -t";
};
}