From f777116b611e400049950e7e7c5c5334e58459c9 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Tue, 27 Jul 2021 14:23:46 +0300 Subject: [PATCH] Set the EDITOR correctly --- profiles/applications/emacs/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/profiles/applications/emacs/default.nix b/profiles/applications/emacs/default.nix index 7e150b7..122581b 100644 --- a/profiles/applications/emacs/default.nix +++ b/profiles/applications/emacs/default.nix @@ -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"; };