[feat] gracefully shutdown emacs
This commit is contained in:
parent
df6f1cd4cb
commit
975aec8881
1 changed files with 3 additions and 1 deletions
|
@ -90,7 +90,9 @@ your morning, and an auto-update tool that makes it easy to keep up with the lat
|
||||||
(list "/usr/bin/emacs"
|
(list "/usr/bin/emacs"
|
||||||
"--fg-daemon")
|
"--fg-daemon")
|
||||||
#:log-file (format #f "~a/.local/var/log/emacs.log" (getenv "HOME"))))
|
#:log-file (format #f "~a/.local/var/log/emacs.log" (getenv "HOME"))))
|
||||||
(stop #~(make-kill-destructor)))))
|
(stop
|
||||||
|
#~(make-system-destructor
|
||||||
|
'("/usr/bin/emacsclient" "--eval" "(kill-emacs)"))))))
|
||||||
|
|
||||||
(define home-emacs-service-type
|
(define home-emacs-service-type
|
||||||
(service-type (name 'emacs-configuration)
|
(service-type (name 'emacs-configuration)
|
||||||
|
|
Loading…
Reference in a new issue