[feat] gracefully shutdown emacs

This commit is contained in:
SouthFox 2024-12-27 11:12:32 +08:00
parent df6f1cd4cb
commit 975aec8881

View file

@ -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"
"--fg-daemon")
#: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
(service-type (name 'emacs-configuration)