Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [emacs-daemon]

Starting Emacs in daemon mode

24 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8 votes
0 answers
10k views

Restart emacs daemon from within emacs

Very much like Restart emacs from within emacs, except I'd like to do this for an emacs daemon and client. Specifically, I'm interested in the terminal client, but of course being able to restart ...
PythonNut's user avatar
  • 10.4k
4 votes
0 answers
2k views

Emacs daemon does not load my init.el completely but plain emacs does

When I run emacs, everything is ok, my init.el is read. However, after starting a daemon (emacs --daemon), an emacsclient GUI frame (emacsclient -c) is not configured for the following setting: font ...
ali b's user avatar
  • 193
4 votes
0 answers
1k views

Starting emacs in daemon mode freezes, emacsclient is not able find a socket

I cannot launch the emacs daemon anymore. I do not know what triggered this. When entering emacs -Q --daemon -v I get only the following and nothing happen. Warning: due to a long standing Gtk+ ...
M. Toya's user avatar
  • 157
3 votes
0 answers
722 views

Starting daemon without forking to background

I want to run an Emacs daemon under daemontools. So I need to create an Emacs process which Basically does emacs --daemon Does stay in the foreground Displays the Messages buffer (or some other ...
andreas-h's user avatar
  • 1,559
2 votes
0 answers
38 views

Eventually, emacsclient -nw freezes?

I use emacs --daemon to launch GUI clients when using emacs. Recently I started to use emacsclient -nw to launch the TUI version of emacs within tmux. It works great. Eventually though, whether I am ...
Vinn's user avatar
  • 293
2 votes
0 answers
201 views

Can't start emacs.service, but manual start works fine

My emacs.service looks like this: denis@dgecko:~> cat /home/denis/.config/systemd/user/emacs.service [Unit] Description=Emacs text editor Documentation=info:emacs man:emacs(1) https://gnu.org/...
dgan's user avatar
  • 153
2 votes
0 answers
420 views

Global display line numbers mode not working

I can run (display-line-numbers-mode) and get line numbers but it doesn't work if I run (global-display-line-numbers-mode) (nothing happens). I have traced this to this function: (defun display-line-...
Joseph Garvin's user avatar
2 votes
0 answers
89 views

Showing different project-trees in different instances of emacs daemon

At this point I usually hook up into my emacs-daemon using emacsclient -a "" -c "$@". When I also want to display my project using Neotree, this works well for only one instance but if I open a file ...
Boris's user avatar
  • 21
2 votes
0 answers
394 views

Faces not set immediately after load-theme

I'm trying to set the faces of highlight-indent-guides automatically whenever a new theme is loaded by making small adjustments to the background color of the default face. I have everything working ...
imalison's user avatar
  • 211
2 votes
0 answers
77 views

mangled terminal output after failing emacsclient / folding mode launch

I consistently get the following problem on Emacs 24.5.1 with folding package (version 20140401.3) for which I've found a workaround but would like to understand what was going on. As you can see in ...
Marcus Junius Brutus's user avatar
2 votes
0 answers
96 views

Hide emacs icon when client is off

I am running emacs as daemon, in MacOSX, it works flawlessly but when I kill the client the icon remains in the dock as running. I searched around for a way to hide it when no client is running but I ...
KonVas's user avatar
  • 23
2 votes
1 answer
2k views

How to gracefully kill clientless daemon from commandline?

summary What to utter from commandline to cause a running clientless Emacs daemon/server process to gracefully shutdown--i.e., clean up after itself, then exit--without creating additional Emacs ...
TomRoche's user avatar
  • 632
1 vote
0 answers
214 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 ...
donatello's user avatar
  • 111
1 vote
0 answers
67 views

How to keep buffers when closing only Emacs client?

I use Emacs 29.1. When I open Emacsclient, I do it with the following command: emacsclient -a -c --create-frame --no-wait This is bounded to a key combination to start the Emacsclient. To kill a ...
ReneFroger's user avatar
  • 3,880
1 vote
0 answers
82 views

Accidentally started emacs --daemon, and couldn't kill it!

I was testing emacs --daemon functionality, and called two daemons alive. I wanted to kill them, with $ pgrep emacs 275760 275857 $ pkill emacs $ pgrep emacs 276788 276847 # It's alive again! # Lemme ...
Student's user avatar
  • 225
1 vote
0 answers
354 views

emacs.service will delay 2 mins before `reboot/shutdown` my computer

I use emacs a lot and restart it since I change my init.el from time to time, so I started to use emacs.service about one year ago using command like systemctl --user enable emacs.service systemctl -...
CodyChan's user avatar
  • 2,649
1 vote
0 answers
26 views

Switching Emacs server's socket without leaving existing emacs gui

I would like to switch between emacs socket without leaving the GUI. I am able to start two emacs daemon session by doing the following: In xterm1: emacs --daemon="one" In xterm2: emacs --daemon="...
user9870's user avatar
1 vote
0 answers
351 views

Using Emacs as a daemon (emacsclient) exhibiting weird behavior

Whenever I use Emacs as a daemon it seems like my init file isn't being fully loaded. My keybindings in particular are acting very odd. I use some unorthodox keybinds; for example: Ctrl+u = ...
John DeBord's user avatar
1 vote
0 answers
289 views

Running Emacs as a client does not load my settings

I'm using the new systemd daemon option with Emacs 26. I have a problem, though. If I open a client instance (emacsclient -c) no config files (my .emacs) are loaded. So I don't see the usefulness in ...
NVaughan's user avatar
  • 1,481
0 votes
0 answers
50 views

Modes aren't enabled properly when visiting a buffer saved in a perspective (persp-mode.el)

I'm an emacs noob, forgive me for any incorrect terminology or missing some important details. I'm using persp-mode.el, but perspective.el was susceptible to the same problem. The problem is, after I ...
Pavel Gurkov's user avatar
0 votes
0 answers
70 views

Org Mode bullets indentation display differently between normal and server mode

Does anybody has any clue why the same configuration yield different appearances between normal vs server-mode ? Here's the normal mode (the correct one) And here's when run Emacs in server-mode (...
Sake's user avatar
  • 335
0 votes
0 answers
392 views

emacsclient crashes on start

I use doom emacs. Starting emacs normally works just fine. Having an emacs daemon and trying to use emacsclient -c causes the following error: *ERROR*: Symbol’s function definition is void: persp-mode-...
The Light Spark's user avatar
0 votes
0 answers
199 views

Segmentation fault when creating new frames

I am reproducibly experiencing segmentation faults on Emacs 26.3 under Debian Buster when creating a new frame, which seems to be related to setting fonts for new frames. In order to illustrate I ...
andreas-h's user avatar
  • 1,559
0 votes
0 answers
75 views

How to have list of program on `dired-do-shell-command` with Emacs server started by systemd

I'm using Emacs as a server started by the systemd user unit. And on any dired buffer when i try to do dired-do-shell-command or dired-do-async-shell-command I cannot autocomplete any program and ...
sribaroud's user avatar