tweak(infinidoge): always create frame in editor script
This commit is contained in:
parent
acd97a7b1a
commit
106229cc3c
1 changed files with 2 additions and 6 deletions
|
@ -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 = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue