dotfiles/emacs/.config/shepherd/init.d/emacs.scm.org
Tom Willemse 9b7417f6c6 Update GNUmakefile
- Add the ‘dunst’, ‘zsh’, ‘mcron’, and ‘mbsync’ modules.

- Tell Make that any ‘*.el’ files ar “precious”, meaning that when a ‘.elc’ file
  was generated from a ‘.el’ file that was itself generated from a ‘.org’ file,
  the ‘.el’ file isn't just an intermediate file and should not be deleted.

- Change the ‘install’ and ‘clean’ to use the ‘*-stow’ and ‘*-clean’ rules set
  up for each module.

- Add configuration for ‘outline-minor-mode’ and change the headings to adhere
  to that configuration.

- Stop using the ‘build/’ directory, tangle all the files to the same directory
  as the source files, and use stow, not cp, to install them. The only exception
  is the XDG files, which now have their specific ‘xdg-stow’ rule. This is
  necessary because programs using these files will overwrite a symbolic link
  they find and replace it with a new file, overwriting my settings.

- Add some files that were missing, and rename some files to follow the existing
  convention to make them easy to tangle.
2022-01-30 23:12:22 -08:00

408 B

Define a service for shepherd that starts up Emacs.

(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)