feat: add emacs daemon
This commit is contained in:
parent
934c332efd
commit
45aca74402
2 changed files with 19 additions and 0 deletions
1
build.sh
1
build.sh
|
@ -39,6 +39,7 @@ systemctl enable podman.socket
|
|||
systemctl enable tailscaled.service
|
||||
systemctl enable -f --global flatpak-setup.service
|
||||
systemctl enable -f --global azure-topgrade.service
|
||||
systemctl enable -f --global emacs.service
|
||||
|
||||
systemctl enable azure-system-setup.service
|
||||
systemctl enable azure-groups.service
|
||||
|
|
18
files/usr/lib/systemd/user/emacs.service
Normal file
18
files/usr/lib/systemd/user/emacs.service
Normal file
|
@ -0,0 +1,18 @@
|
|||
[Unit]
|
||||
Description=Emacs text editor
|
||||
Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/
|
||||
ConditionPathExists=%h/.local/bin/distrobox/emacs
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=%h/.local/bin/distrobox/emacs --fg-daemon
|
||||
ExecStop=%h/.local/bin/distrobox/emacsclient --eval "(kill-emacs)"
|
||||
Environment=SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh
|
||||
Environment=COLORTERM=truecolor # force truecolor for emacsclient -nw
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
StartLimitIntervalSec=30
|
||||
StartLimitBurst=10
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
Loading…
Reference in a new issue