Make sure arguments are quoted correctly in emacs wrappers

This commit is contained in:
Charlotte Van Petegem 2021-03-24 12:09:24 +01:00
parent 1df0b2f6fd
commit 58390a943f
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -41,9 +41,8 @@ in
".emacs.d/init.el".source = ./emacs/init.el;
};
packages = [
(pkgs.writeShellScriptBin "emacs" ''
${emacsPkg}/bin/emacsclient -c $@
'')
(pkgs.writeShellScriptBin "emacs" ''${emacsPkg}/bin/emacsclient -c "$@"'')
(pkgs.writeShellScriptBin "emacsclient" ''${emacsPkg}/bin/emacsclient "$@"'')
];
sessionVariables = { EDITOR = "emacs"; };
};