1 2 3 4 5 6 7 8
{writeShellScriptBin, ...}: writeShellScriptBin "lemacs" '' if [ -n "$DISPLAY" ]; then emacsclient -a "" -n -c "$@" else emacsclient -a "" -c "$@" fi ''