• [gentoo-user] Arranging a specialized instance of emacs --daemon in a G

    From akater@21:1/5 to All on Fri Sep 17 14:30:02 2021
    I've been running gentoo-managed emacs-daemon because I trust Gentoo to
    do the right thing but I never figured out why the procedure is the way
    it is. Now I'm trying to package a “standalone” Emacs application and
    the best way to do provide a mainstream entry point to it, is something
    along the lines of

    cat /usr/bin/my-application.sh

    if [ emacs-my-application-running() ] ; then
    emacsclient -s emacs-${USER}-my-application
    else
    emacs -Q --daemon=emacs-${USER}-my-application \
    -L necessary-dirs --eval "(run-my-application)"
    fi

    but I wonder if I should run a daemon this way in Gentoo, or is there a
    more preferrable way?

    I don't want to use default daemon setup though because I want to run a specific instance with named socket, to isolate the application.

    --=-=-Content-Type: application/pgp-signature; name="signature.asc"

    -----BEGIN PGP SIGNATURE-----

    iQJLBAEBCgA1FiEEgu5SJRdnQOF34djNsr6xYbHsf0QFAmFEhzsXHG51Y2xlYXJz cGFjZUBnbWFpbC5jb20ACgkQsr6xYbHsf0TOhA/8CBTSO8I4ui9FBpQVu0qRL6Om Mr47haU03ZsB0iYYmA850Hx9+xLWJcH89sirE5wdzKn7Lpen+g7M9tQOI/WGYZRN ejULDMSXVRQVjlm1mRv4iFxRFclJ7UoqcGij5Geu2JCIrcvkcsN68QRvQP1XyB9S hW4k9/mGulHF5XNpndgAHIrYkqb02p7yewoDkHjQhbRAfmPl+H8Ftlaa3A4xUChz W0EjrJ0+Vaky4B6umKKeeWhduGlll4DqQguCKpmuWDkNKVdqisfBmGB6Wk5YzGyb +XHSdYCs0WnRm/L1GfV6AL8ncjvMGMQ4fZwNIZKhIZML9PDW9NPQ7kFr+K672PyX paLPFAFFi30B7I6XrZrizno+uFwKnaXZ2xVZRK8MtrnraTQA2uubEOV1ge+/KsHX sGYHx8rULi+ZkbhQvO7IdeLGpeEdwD5qWfRFWdyhwadWqr0Qva9WPoOKexLAqJv6 mKI4OS6UcMU/RbzxH0JD/Bp6buQZicmh/2Ee5gdzk7zJ5zFoPrZj1lWyCiZY0BY4 65h1FQ9yCKMjsCIihyOJ/AYj6lEEX8VftfzB8C4aCnCCDgm7NUhsd7uyZ7rzMxnC EMtzGEo+TukznobmseaKv0Hr3sYdgS5LrFrmbM9qp9oYoR1dUTEpdfJtDyHrDoDE UdUH+8Vlnk4aURg8I+Ef2
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)