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.

57 questions
55
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
  • 725
  • 1
  • 5
  • 10
26
votes
5 answers

Emacsdaemon and Emacsclient on Mac

OS: OS X 10.9.5, Mavericks GNU Emacs 24.3.1 (x86_64-apple-darwin13.1.0, Carbon Version 1.6.0 AppKit 1265.19) of 2014-04-03 on Rainers-MacBook-Pro-3.local I installed emacs via homebrew from railwaycat and it works nicely - no complaints. I do…
Rainer
  • 897
  • 10
  • 16
21
votes
4 answers

Different themes for terminal and graphical frames when using Emacs daemon

I'm trying to achieve the following behavior in Emacs24: I like to use a different theme (solarized-dark vs. solarized-light) depending on whether I connect to the running server with a terminal frame % emacsclient -t or with a gtk frame %…
andreas-h
  • 1,559
  • 13
  • 22
19
votes
1 answer

How can I debug random Emacs server crashes?

I generally have a long-running instance of emacs --daemon, which I connect to with various emacsclients. Recently I have started experiencing random crashes. I say "random" because I haven't been able to figure out what causes the crashes. Often it…
Scott Weldon
  • 2,695
  • 1
  • 17
  • 31
16
votes
3 answers

Daemon mode: Defer interactive prompts on startup?

(Note that, title to the contrary, this question is not the same as How to start in daemon mode and suppress interactive dialogs?, as that question was "answered" by the submitter eliminating what was causing a particular prompt to appear.) I'd like…
Trey
  • 865
  • 5
  • 20
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,175
  • 2
  • 35
  • 73
14
votes
2 answers

Using daemon mode in Gnome 3

I've gotten the Emacs daemon to work through the command line using the EmacsWiki page, but I'm stuck on how to get the client to run through the Gnome 3 launcher. How can I set up a Gnome desktop file that launches a GUI window that connects to the…
tbekolay
  • 243
  • 3
  • 9
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 http://www.emacswiki.org/emacs/EmacsAsDaemon but it still does not play nice for me.…
Andreas Steffan
  • 223
  • 1
  • 5
11
votes
2 answers

emacsclient to access remote emacs server

I'm trying to open an emacsclient session from a remote host. I walked through the following steps on the tramp website How can I use TRAMP to connect to a remote Emacs session?. I'll walk you through the step on the remote host put in .emacs…
DJJ
  • 732
  • 5
  • 19
10
votes
1 answer

How to know if emacs is running as a daemon?

I want to know if emacs is running as a daemon, so I can load some parts of my configuration according, I want to know this from within emacs.
shackra
  • 2,702
  • 18
  • 47
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 ... the theme loads properly. [Scroll…
digitalis_
  • 427
  • 4
  • 10
7
votes
2 answers

Unable to connect using emacsclient

I am starting the emacs server using systemctl --now --user enable emacs That server is running, if I run systemctl --user status emacs I got $ systemctl --user status emacs ● emacs.service - Emacs text editor Loaded: loaded…
7
votes
1 answer

after-make-frame-functions does nothing for an otherwise working function

I am using workgroups and I have the following code in my init.el: (defun my-start-emacs (_) (interactive) (message "HI") (sleep-for 1) (if (daemonp) (progn (if (not (boundp 'server-wg)) (progn …
space_voyager
  • 709
  • 5
  • 19
5
votes
1 answer

emacsclient GUI has small fonts

Recently I updated Emacs to the newest version (26.2) which comes with new daemon functionality and Emacs server in combination with Systemd (Manjaro here). Previously there were no issues with setting a server, but now I've got no idea what is…
j3k
  • 111
  • 7
5
votes
1 answer

Debugging - emacsclient: error accessing server file "server"

I got the not terribly helpful error message recently trying to connect emacsclient to a emacs daemon using tcp sockets. emacsclient: error accessing server file "server" Looking at the source, its not obvious what is going wrong -…
Job Evers
  • 300
  • 1
  • 8
1
2 3 4