Questions tagged [daemon]
Starting Emacs in daemon mode
58 questions
1 vote
0 answers
823 views
How to run emacs as a systemd service with Wayland on Ubuntu 22.04+?
The stock systemd user service file for emacs 29.1 looks like this: [Unit] Description=Emacs text editor Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/ [Service] Type=notify ...
0 votes
0 answers
87 views
using desktop.el in --daemon mode
I eventually figured out that the answer to this question https://groups.google.com/g/gnu.emacs.help/c/WZoW0LlqX6c/m/08Sa6alHp1oJ was to choose --bg-daemon rather than --fg-daemon when starting the ...
0 votes
1 answer
194 views
Emacs Daemon Multiple user on Mac best practices
I'm new to Emacs, so apologies if this is covered elsewhere. I'm running latest macOS 12.4; and downloaded emacs.app from emacsformacosx.com so I'm on Emacs 28.1-4 . I have an admin user, which I ...
0 votes
1 answer
425 views
Emacs daemon. First emacslient frame loads reasonably fast. Subsequent emacsclient frames load almost instantaneously. Why?
Emacs daemon greatly reduces time to load the first frame with emacsclient. However, when visiting a file with emacsclient, subsequent emacsclient frames load much faster than the first. Command Load ...
8 votes
1 answer
687 views
How are a daemon and a server different in Emacs?
After running (server-start) in Emacs, I evaluated (daemonp) and (server-running-p) The first one returns nil, whereas the second one returns t. So, how are a daemon and a server different in Emacs? ...
0 votes
0 answers
786 views
emacsclient: connect: Connection refused
I am trying to run emacs-daemon on a remote machine (connected via ssh), which was working fine. After I try to setup ports for mosh between 60000:61000 emacs-daemon started not to open :-( The way I ...
1 vote
1 answer
1k views
emacsclient unable to connect to daemon under snap installation of Emacs
I am facing with a well know problem, when I try to start emacs --daemon on a remote machine, I am getting following error emacsclient: connect: Connection refused: $ ps aux | grep -E "[e]macs&...
2 votes
2 answers
1k views
Preload problem: Emacs as daemon in X
Background: I want to use emacs like tmux which can run as persistent session as well as shorten the time for me to start bringing up emacs when I want to (as inspired by these: Emacs and a Tmux ...