From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Geerinckx-Rice Subject: Re: Starting emacs as a daemon Date: Wed, 05 Jun 2019 16:58:59 +0200 Message-ID: <87muiw2i4s.fsf@nckx> References: <9C4BD318-9F2F-4893-8748-F4B3DD8DBCAE@firemail.cc> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:35222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYXNe-0000a1-Mb for help-guix@gnu.org; Wed, 05 Jun 2019 10:59:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hYXNb-0002cY-OM for help-guix@gnu.org; Wed, 05 Jun 2019 10:59:10 -0400 Received: from tobias.gr ([2001:470:7405::1]:56268) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hYXNa-0002WZ-NJ for help-guix@gnu.org; Wed, 05 Jun 2019 10:59:07 -0400 In-reply-to: <9C4BD318-9F2F-4893-8748-F4B3DD8DBCAE@firemail.cc> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Marlin Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Marlin, Marlin wrote: > Hi! I'm currently running the guix system, and would like to=20 > start > the emacs daemon/server at boot. How can i do this? Not used to > shepherd yet. Unless you mean =E2=80=98at boot=E2=80=99 literally, this is best handled = =E2=80=98at=20 log-in=E2=80=99 through a separate (user) instance of El Shep.=20 Unfortunately, this mode isn't currently integrated with Guix=20 System and still underdocumented. Here's my set-up, which I thought I'd posted here before but can't=20 find in the archives: ~ =CE=BB cat /home/nckx/.config/shepherd/services.scm (define emacs (make #:provides '(emacs) #:requires '() #:start (make-system-constructor "emacs --daemon") #:stop (make-system-destructor "emacsclient --eval \"(kill-emacs)\""))) ;; Other services (gpg, ibus, =E2=80=A6) snipped. ~ =CE=BB 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 ~ =CE=BB grep -A1 shepherd /home/nckx/.xsession shepherd # user service manager exec dbus-launch --exit-with-session ssh-agent i3 Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXPfYswAKCRANsP+IT1Vt eQMsAP9obNPJfu7aT+/21rGRW6abCBkW3e0VRPj5MO5nK6PZZgEA8CrvybUtWV4Z 6OQp0cA8aOToLoT7eugOvk0ZxmYCHQY= =AVTn -----END PGP SIGNATURE----- --=-=-=--