config

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

emacs.service (615B)


      1 [Unit]
      2 Description=Emacs text editor
      3 Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/
      4 
      5 [Service]
      6 Type=notify
      7 ExecStart=/usr/bin/emacs --fg-daemon
      8 
      9 # Emacs will exit with status 15 after having received SIGTERM, which
     10 # is the default "KillSignal" value systemd uses to stop services.
     11 SuccessExitStatus=15
     12 Environment="LC_CTYPE=zh_CN.UTF-8" 
     13 Environment="XMODIFIERS=@im=fcitx"
     14 
     15 # The location of the SSH auth socket varies by distribution, and some
     16 # set it from PAM, so don't override by default.
     17 # Environment=SSH_AUTH_SOCK=%t/keyring/ssh
     18 Restart=on-failure
     19 
     20 [Install]
     21 WantedBy=default.target