dotfiles/emacs/.config/shepherd/init.d/emacs.scm.org

17 lines
428 B
Org Mode
Raw Normal View History

Define a service for shepherd that starts up Emacs.
#+begin_src scheme
(define emacs
(make <service>
#:provides '(emacs)
#:docstring "Run `emacs --daemon'"
#:start (make-forkexec-constructor
'("emacs" "--fg-daemon")
#:log-file (string-append (getenv "HOME") "/.logs/emacs.log"))
#:stop (make-kill-destructor)))
(register-services emacs)
(start emacs)
#+end_src