Skip to main content

Questions tagged [daemon]

Starting Emacs in daemon mode

Filter by
Sorted by
Tagged with
56 votes
3 answers

How do I use emacsclient to connect to a remote emacs instance?

I'd like to be able to run emacs on one computer: server $ emacs --daemon And then connect to it from another: local $ emacsclient -c server Is this possible? If so, how?
liszt's user avatar
  • 745
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 <file>, ...
nispio's user avatar
  • 8,255
11 votes
2 answers

Using desktop-mode with Emacs Daemon

I am using emacs 24.3 (ubuntu 14.10) and would like the daemon to participate in the graphical desktop session lifecycle while using desktop-mode. I went through
Andreas Steffan's user avatar
3 votes
1 answer

emacs --daemon frozen when started with emacsclient file

This is somewhat of a follow up to Prevent emacsclient from blocking other instances. I am using emacsclient -a '' -nw --socket-name=$TTY where TTY=$(basename tty). I use emacs in the terminal and ...
asmeurer's user avatar
  • 1,592
9 votes
1 answer

Emacs (as daemon) doesn't load theme

Related: Emacs: GUI with emacs --daemon not loading fonts correctly My init.el contains the following lines: (require 'darktooth-theme) (load-theme 'darktooth t) If I start Emacs with $ emacs ... ...
digitalis_'s user avatar
4 votes
1 answer

How can I suppress the message `When done with this frame, type C-x 5 0`?

I am running emacs v26 daemon on the background and using a single terminal. Usually I open files using emacsclient -qt and close them using C-x C-s and C-x C-c to get back to terminal run the script ...
alper's user avatar
  • 1,410
3 votes
1 answer

emacs --daemon is not loading gui elements

I defined emacsclient as default editor in .bashrc so emacs -daemon will be called upon startup: export ALTERNATE_EDITOR="" export EDITOR=emacsclient But compared to a normal load without ...
phonycollectibles's user avatar
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 -...
user1404316's user avatar
1 vote
1 answer

Make Emacs systemd service kill when logging out/shutting down

I am trying to use desktop-save-mode together with emacs daemon. ;; save desktop before quitting (add-hook 'kill-emacs-hook (lambda () (desktop-save "~/.emacs.d/"))) But when I log out of the ...
Daanturo's user avatar
  • 180
1 vote
2 answers

running emacs as a daemon does not load custom-set-faces?

I am starting with emacs --daemon in my session, and it seems to trigger some odd behavior regarding themes and faces. I am using this solarized theme but I have found it to have weird cursor issues. ...
anarcat's user avatar
  • 133
1 vote
0 answers

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
1 vote
1 answer

emacs --daemon crashes when parent ssh session dies

I'm using emacs 26.1 (although I don't think this is a new issue with this verison). Note - this is not the GTK bug which results in the daemon crashing if X Connectivity is lost. I am aware of that ...
Phil's user avatar
  • 535