Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [daemon]

Starting Emacs in daemon mode

1
vote
1answer
59 views

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. ...
1
vote
1answer
27 views

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 -...
0
votes
1answer
28 views

daemon startup, new frame configuration, and display-pixel-width

I have a snippet that I use to determine what font size to set based on the resolution of the display, for when my laptop has an external monitor set or not: (defconst prefs/font-size ...
0
votes
0answers
48 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 = ...
0
votes
1answer
82 views

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 ...
0
votes
0answers
78 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 ...
7
votes
2answers
276 views

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 - ...
2
votes
1answer
492 views

Changing the location of the emacs server socket

When I run emacs --daemon it creates a socket at /tmp/emacs1000/server How can I tell it to use a different location?
2
votes
0answers
284 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 ...
0
votes
1answer
196 views

Emacs daemon hangs on first run on Emacs 25.2

I've installed Emacs 25.2 on Mac High Sierra Beta. I used it together with bbatsov's prelude. When I first run emacs --daemon, it hangs showing this output: m15:~ g$ emacs --daemon Prelude is ...
2
votes
0answers
125 views

reopening emacsclient -t with desktop-save-mode doesn't save buffers/frames in place

I added (desktop-save-mode 1) to my custom.el towards the end to save buffers and frames. But I primarily use emacs --daemon and start an emacsclient -t. For some reason, if I use just emacs the ...
1
vote
0answers
54 views

Unable to tweak theme settings unless I start a new session

I have this code in my init.el file, mainly to apply the theme correctly when running emacs server: ;; This will make sure the theme loads well in emacs daemon (setq myGraphicModeHash (make-...
5
votes
0answers
135 views

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 ...
2
votes
1answer
399 views

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 (...
0
votes
1answer
248 views

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 client, if ...
3
votes
1answer
1k views

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 ... ...
0
votes
0answers
27 views

Emacs: Find an available font to use as default in --daemon startup [duplicate]

I want to use emacs --daemon to improve startup. However, I also want to set the default font in my init.el. There's an explanation of how to do this in https://stackoverflow.com/questions/3984730/...
0
votes
1answer
639 views

Emacs daemon not working properly, Emacs server runs fine

Version GNU Emacs 25.1.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-04-25 Xubuntu 16.04, Linux kernel 4.4 In my .emacs I have the following settings (require 'server) (unless (server-...
2
votes
1answer
49 views

Don't let the daemon frame make a file visible

I normally start Emacs in daemon mode and reload my last session with the desktop package. This causes whichever file desktop-read open last to remain visited in a buffer which is selected in the ...
4
votes
1answer
710 views

OS X and Daemon Mode

I am using the railwaycat brew install version of emacs. 24.5.1 I have the following alias in my .bashrc: alias edit="emacsclient -a '' -nw" I also have $EDITOR set to the same command. If I ...
0
votes
0answers
38 views

Minibuffer prompt not displaying (intermittently) in daemon mode

I am using Emacs 24.5 on Mac OS (installed with homebrew) in daemon mode. I normally leave the daemon running for long periods of time (weeks) while I'm working. I'll open up files from the command ...
3
votes
0answers
355 views

Startup Emacs Daemon With Elfeed (RSS Feed Reader) Buffer

What I would like to accomplish is this: Allow emacs daemon to start with my start up applications like normal When I open an emacs frame I would like only the first one to start with my rss news ...
4
votes
1answer
209 views

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" ...
7
votes
2answers
2k views

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 ...
3
votes
0answers
499 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+ ...
4
votes
1answer
720 views

“Error reading from stdin” after reboot

I've started using the emacsclient more along with the daemon, and I'm a huge fan, but it's started giving me trouble when I reboot my computer. After reboot when I open up a new emacsclient, I don't ...
2
votes
2answers
443 views

When to call find-font if launching emacs in daemon mode?

I would like to use certain unicode characters in the mode-line only if the Symbola font is available on the system. So I put this in my emacs config and it's a great way to check if those fonts are ...
15
votes
0answers
974 views

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 ...
1
vote
1answer
141 views

Having clean-buffer-list skip buffers with server-buffer-clients?

I have Emacs run in daemon mode at system startup, and run emacsclient automatically when I login to X. I also recently started running midnight-mode, which regularly runs clean-buffer-list, which ...
7
votes
1answer
892 views

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/...
3
votes
1answer
473 views

Specify name on emacsclient first frame

I would like an emacsclient frame with a specific name to open when I log into my computer. I tried adding emacsclient -e '(select-frame (make-frame (quote ((name . "scratchemacsframe")))))' to my ...
3
votes
0answers
255 views

Restore desktop frames for Emacs server

The version of desktop.el that comes with Emacs 24.4 allows restoring frames as well as windows and buffers. This works fine for an Emacs server (i.e., daemon) with at least one open frame. However, a ...
3
votes
1answer
839 views

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 ...
3
votes
0answers
162 views

Launching in daemon mode crashes emacs while loading configuration from .org file

I've been using literate programming using org-mode for my initialization file. I've a init.el which loads a org file converts it to .el and uses it as startup file. Here is my configuration files. ...
2
votes
1answer
590 views

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 ...
10
votes
1answer
434 views

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.
19
votes
3answers
3k views

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 ...
41
votes
4answers
15k views

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?
25
votes
5answers
7k views

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 ...
14
votes
3answers
2k views

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>, ...
13
votes
2answers
2k views

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 ...