config

Personal configuration.
git clone git://code.dwrz.net/config
Log | Files | Refs

commit e7e3bb9b4fc931b10233ab4db6967697e79b7101
parent 8f7baf74869e9eb194413cb0d2ddff5ae35162b5
Author: dwrz <dwrz@dwrz.net>
Date:   Fri, 18 Oct 2024 08:44:38 +0000

Add Emacs service

Diffstat:
Asystemd/user/emacs.service | 21+++++++++++++++++++++
1 file changed, 21 insertions(+), 0 deletions(-)

diff --git a/systemd/user/emacs.service b/systemd/user/emacs.service @@ -0,0 +1,21 @@ +[Unit] +Description=Emacs text editor +Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/ + +[Service] +Type=notify +ExecStart=/usr/bin/emacs --fg-daemon + +# Emacs will exit with status 15 after having received SIGTERM, which +# is the default "KillSignal" value systemd uses to stop services. +SuccessExitStatus=15 +Environment="LC_CTYPE=zh_CN.UTF-8" +Environment="XMODIFIERS=@im=fcitx" + +# The location of the SSH auth socket varies by distribution, and some +# set it from PAM, so don't override by default. +# Environment=SSH_AUTH_SOCK=%t/keyring/ssh +Restart=on-failure + +[Install] +WantedBy=default.target