GNU Emacs 184.108.40.206 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-04-25
Xubuntu 16.04, Linux kernel 4.4
.emacs I have the following settings
(require 'server) (unless (server-running-p) (server-start))
When I call
emacsclient -c -a emacs, it works like a charm. When there is no Emacs instance running in background or in another workspace, Emacs will be called. Otherwise, emacsclient will be called.
But I want to have Emacs running in the background. For that, I use the Emacs daemon.
emacs --daemon, I see my
dot-emacs being loaded in the terminal. After that, I call
emacsclient -c or
emacsclient, but it cannot detect the Emacs daemon/server.
When Googling around, I found this answer: http://www.tychoish.com/posts/getting-emacs-daemon-to-work-right/
So I added it to my commands that it will be called on startup:
emacs -u renefroger(my username) --daemon --eval "(setq default-frame-alist \ '((font-backend . \"xft\") (font . \"[FONT]-[SIZE]\")))" -l ~/.emacs
After a restart, I call
emacsclient -nw but it makes it somewhat unusable. I got sometimes the message
Error reading from stdin when I do sometihing like M-x Helm, and the colors are not right, while they're fine the console Emacs with the Emacs server instead of daemon. So I'm puzzled what's going on with the Emacs daemon.
How could I get Emacs daemon working properly?