From: Tobias Geerinckx-Rice <me@tobias.gr>
To: Marlin <mbmattos1113@firemail.cc>
Cc: help-guix@gnu.org
Subject: Re: Starting emacs as a daemon
Date: Wed, 05 Jun 2019 16:58:59 +0200 [thread overview]
Message-ID: <87muiw2i4s.fsf@nckx> (raw)
In-Reply-To: <9C4BD318-9F2F-4893-8748-F4B3DD8DBCAE@firemail.cc>
[-- Attachment #1: Type: text/plain, Size: 1243 bytes --]
Marlin,
Marlin wrote:
> Hi! I'm currently running the guix system, and would like to
> start
> the emacs daemon/server at boot. How can i do this? Not used to
> shepherd yet.
Unless you mean ‘at boot’ literally, this is best handled ‘at
log-in’ through a separate (user) instance of El Shep.
Unfortunately, this mode isn't currently integrated with Guix
System and still underdocumented.
Here's my set-up, which I thought I'd posted here before but can't
find in the archives:
~ λ cat /home/nckx/.config/shepherd/services.scm
(define emacs
(make <service>
#:provides '(emacs)
#:requires '()
#:start (make-system-constructor "emacs --daemon")
#:stop (make-system-destructor
"emacsclient --eval \"(kill-emacs)\"")))
;; Other services (gpg, ibus, …) snipped.
~ λ cat /home/nckx/.config/shepherd/init.scm
(load "services.scm")
(register-services emacs gpg-agent ibus-daemon jackd)
(action 'shepherd 'daemonize) ; send shepherd into background
(for-each start (list emacs)) ; services to start automatically
~ λ grep -A1 shepherd /home/nckx/.xsession
shepherd # user service manager
exec dbus-launch --exit-with-session ssh-agent i3
Kind regards,
T G-R
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
prev parent reply other threads:[~2019-06-05 14:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-04 19:09 Starting emacs as a daemon Marlin
2019-06-05 14:58 ` Tobias Geerinckx-Rice [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87muiw2i4s.fsf@nckx \
--to=me@tobias.gr \
--cc=help-guix@gnu.org \
--cc=mbmattos1113@firemail.cc \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).