* Starting emacs as a daemon
@ 2019-06-04 19:09 Marlin
2019-06-05 14:58 ` Tobias Geerinckx-Rice
0 siblings, 1 reply; 2+ messages in thread
From: Marlin @ 2019-06-04 19:09 UTC (permalink / raw)
To: help-guix
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.
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Starting emacs as a daemon
2019-06-04 19:09 Starting emacs as a daemon Marlin
@ 2019-06-05 14:58 ` Tobias Geerinckx-Rice
0 siblings, 0 replies; 2+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-06-05 14:58 UTC (permalink / raw)
To: Marlin; +Cc: help-guix
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-06-05 14:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-04 19:09 Starting emacs as a daemon Marlin
2019-06-05 14:58 ` Tobias Geerinckx-Rice
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.