all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* properly setting up ~/.emacs.d for daemon usage
@ 2016-12-11 13:10 Filipe Silva
  2016-12-11 21:47 ` Óscar Fuentes
  2016-12-11 23:17 ` Stefan Monnier
  0 siblings, 2 replies; 16+ messages in thread
From: Filipe Silva @ 2016-12-11 13:10 UTC (permalink / raw)
  To: help-gnu-emacs

Dear users and developers of the mighty emacs editor,

I'm deeply in love with the --deamon feature, but I'm encountering a
scenario that I'm having a hard time to solve.

When I start emacs with emacs --daemon, emacs does not know if I wan't to
run emacs as a GUI or inside a terminal,
therefore all the checks inside my ~/.emacs.d init code which use
(display-graphic-p) will not work,
e.g. emacs will think that I have no gui because display-graphic-p will
return nil.

likewise, using (daemon-p) while my `~/.emacs.d/` config is loading up will
not work
because emacs has not loaded yet: the daemon boostrap procedure is not
complete so (daemon-p) dutifully returns nil.

The end result is: if I later try to connect to said daemon using
emacsclient pulling up a gui-frame, all the colors are off because emacs
thought that I had no gui.

Seems that the solution for that would be to put a hook somewhere that
would activate when an emacs frame is created. In this hook, I'd have to
put all my initialization code that is gui-dependent.

Make sense? How would an emacs user properly setup his ~/.emacs.d/ so that
it plays well with the daemon feature?

thanks in advance,

Ninrod


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2016-12-14 11:26 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-11 13:10 properly setting up ~/.emacs.d for daemon usage Filipe Silva
2016-12-11 21:47 ` Óscar Fuentes
2016-12-12 14:10   ` Filipe Silva
2016-12-12 15:34     ` Óscar Fuentes
2016-12-12 18:47       ` Filipe Silva
2016-12-12 19:48         ` Óscar Fuentes
2016-12-13 11:07         ` Yuri Khan
2016-12-13 21:31           ` Filipe Silva
2016-12-13 21:51             ` Óscar Fuentes
2016-12-13 23:49               ` Kaushal Modi
2016-12-14 11:26                 ` Filipe Silva
2016-12-13 22:53             ` Filipe Silva
2016-12-13 23:14               ` Óscar Fuentes
2016-12-12 16:46     ` Yuri Khan
2016-12-12 19:29       ` Eli Zaretskii
2016-12-11 23:17 ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.