Home Gen14 @ 2025-10-21-17:28 by admin-jroeger@T14-OE130-7-ubuntu

This commit is contained in:
Jonas Röger 2025-10-21 17:28:14 +02:00
parent be9de4973e
commit 203486d20b

View File

@ -71,8 +71,7 @@
wrapProgram $out/bin/emacsclient \
--prefix PATH : ${lib.makeBinPath doom-path-pkgs} \
--set DOOMDIR "${config.home.sessionVariables.DOOMDIR}" \
--set DOOMLOCALDIR "${config.home.sessionVariables.DOOMLOCALDIR}" \
--set EMACS_SOCKET_NAME "$XDG_RUNTIME_DIR/emacs/${doom-socket-name}"
--set DOOMLOCALDIR "${config.home.sessionVariables.DOOMLOCALDIR}"
'';
};
doom-setup = pkgs.writeShellScript "doom-setup" ''
@ -87,6 +86,7 @@
fi
'';
doom-open = pkgs.writeShellScriptBin "doom-open" ''
export EMACS_SOCKET_NAME="$XDG_RUNTIME_DIR/emacs/${doom-socket-name}"
if [ -t 0 ]; then
exec ${wrapped-emacs}/bin/emacsclient -t "$@"
else