public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Arranging a specialized instance of emacs --daemon in a Gentoo package
@ 2021-09-17 12:16 akater
  0 siblings, 0 replies; only message in thread
From: akater @ 2021-09-17 12:16 UTC (permalink / raw
  To: emacs; +Cc: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 808 bytes --]

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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 865 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-17 12:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-17 12:16 [gentoo-user] Arranging a specialized instance of emacs --daemon in a Gentoo package akater

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox