Set the EDITOR correctly

This commit is contained in:
Alexander Bantyev 2021-07-27 14:23:46 +03:00
parent 109d2c6c97
commit f777116b61
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5

View File

@ -19,8 +19,9 @@ in {
[ ".config/emacs/custom" ".config/emacs/eshell/history" ];
defaultApplications.editor = {
cmd =
"${config.home-manager.users.balsoft.programs.emacs.finalPackage}/bin/emacsclient -c $@";
cmd = toString (pkgs.writeShellScript "emacsclient-newwindow" ''
${config.home-manager.users.balsoft.programs.emacs.finalPackage}/bin/emacsclient -c "$@"
'');
desktop = "emacsclient";
};