all repos — nixfiles @ 78e41e44e8363fdb60b983c3d668e1558613b791

System and user configuration, managed by nix and home-manager

use neovim as $EDITOR
Alan Pearce alan@alanpearce.eu
Tue, 18 Apr 2023 06:55:13 +0200
commit

78e41e44e8363fdb60b983c3d668e1558613b791

parent

70d6a686739c902880c3a45f6979ad469a3b75f5

2 files changed, 1 insertions(+), 3 deletions(-)

jump to
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -171,9 +171,6 @@ };   home.packages = [
     editorScript
   ];
-  home.sessionVariables = {
-    EDITOR = "${editorScript}/bin/edit";
-  };
   xdg.configFile."emacs/early-init.el" = {
     source = ../emacs/early-init.el;
     onChange = ''
M user/settings/neovim.nixuser/settings/neovim.nix
@@ -5,6 +5,7 @@ , ... }: {
   programs.neovim = {
     enable = true;
+    defaultEditor = true;
     vimAlias = true;
     vimdiffAlias = true;
     withNodeJs = true;