Questions tagged [daemon]

Starting Emacs in daemon mode

Emacs can start in daemon mode: it starts without any user interface, only with a , and you can open files and windows by contacting the server with the utility.

58 questions
14
votes
3 answers

Start two separate emacs daemons for console and GUI

Typically I start emacs with the GUI, and start a server right away with (server-start). Now I can easily open documents into my existing emacs session from terminal via emacsclient -n , or from the File Browser. From time to time, however, I…
nispio
  • 8,225
  • 2
  • 36
  • 74
4
votes
1 answer

How to get a list of all the daemons running?

I use one daemon per project (so that when I open the client, they don't share buffers). I'd like to get a list of all the daemons that are running. I tried using lsof -c emacs | grep "TYPE=STREAM" but that doesn't narrow it down sufficiently. Is…
kshenoy
  • 211
  • 2
  • 11
2
votes
1 answer

Connect to daemon with 'lost' socket

I have a running emacs daemon, and somehow lost the ability to connect to it. Here are some relevant command output: $ pgrep -a emacs 12664 emacs --daemon $ lsof -c emacs -a -u $USER -a -U -w COMMAND PID USER FD TYPE …
user1404316
  • 789
  • 5
  • 12
1
vote
1 answer

How can I prevent `84;0;0c` written into first line when emacs daemon starts running?

When emacs frozen, I restart it and I see that 84;0;0c may end up writting into very first line of the latest open file. The way I start emacs daemon: emacsclient -c -qut file.txt 2>/dev/null. While this process is on-going when I type enter or…
alper
  • 1,370
  • 1
  • 13
  • 35
0
votes
1 answer

Is it ok to run `emacs --fg-daemon` and `emacs --bg-daemon` at the same time?

I am trying to run GNU Emacs 29.0.50 in macOS. The way install it as follows: brew reinstall emacs-head@29 --with-cocoa --with-native-comp I have observe that Emacs --fg-daemon and Emacs --bg-daemon processes are running at the same time. $ ps…
alper
  • 1,370
  • 1
  • 13
  • 35