Emacs 后台自动启动-用户层面: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

29 September 2025

  • curprev 10:1910:19, 29 September 2025Mwroot talk contribs 1,023 bytes +1,023 Created page with "<syntaxhighlight lang="bash"> mkdir -p ~/.config/systemd/user nano ~/.config/systemd/user/emacs-user.service </syntaxhighlight> <pre> [Unit] Description=Emacs text editor as a daemon Documentation=info:emacs man:emacs(1) [Service] Type=forking ExecStart=/usr/bin/emacs --daemon ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)" Restart=on-failure [Install] WantedBy=default.target </pre> <syntaxhighlight lang="bash"> systemctl --user daemon-reload systemctl --user ena..."