tweak(infinidoge): always create frame in editor script

This commit is contained in:
Infinidoge 2023-03-29 16:27:33 -04:00
parent acd97a7b1a
commit 106229cc3c

View file

@ -64,14 +64,10 @@ in
pkg = config.home-manager.users.infinidoge.programs.emacs.package; pkg = config.home-manager.users.infinidoge.programs.emacs.package;
editorScript = pkgs.writeScriptBin "emacseditor" '' editorScript = pkgs.writeScriptBin "emacseditor" ''
#!${pkgs.runtimeShell} #!${pkgs.runtimeShell}
if [ -z "$1" ]; then exec ${pkg}/bin/emacsclient --create-frame "$@"
exec ${pkg}/bin/emacsclient --create-frame
else
exec ${pkg}/bin/emacsclient "$@"
fi
''; '';
in in
(lib.mkOverride 900 "${editorScript}/bin/emacseditor"); (lib.mkForce "${editorScript}/bin/emacseditor");
modules = { modules = {
locale.fonts = { locale.fonts = {