[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: properly setting up ~/.emacs.d for daemon usage

From: Filipe Silva
Subject: Re: properly setting up ~/.emacs.d for daemon usage
Date: Wed, 14 Dec 2016 09:26:42 -0200

Kaushal, I found it:

This looks very interesting. I'll try that. Thanks.


On Tue, Dec 13, 2016 at 9:49 PM, Kaushal Modi <>

> Hi Filipe,
> I have stumbled across this in the past. Here's the solution that works
> for me to get a config that works when daemonp is nil/non-nil and
> display-graphic-p is nil/non-nil:
> Search for focus-in-hook in there and look at that code and the comment
> explanation above that.
> I am traveling, else I would have typed clean directly reusable code
> snippets over here.
> Another way to deal with setup that works regardless of the session being
> daemonp is to load the setup after some delay. I do that for loading
> desktop sessions:
> ;; Delay desktop setup by a second.
> ;; - This speeds up emacs init, and
> ;; - Also (n)linum and other packages would already be loaded which the
> files
> ;; being loaded from the saved desktop might need.
> (use-package setup-desktop :defer 1)
> So there are no daemonp startup issues like "linum font face not defined",
> etc.
> About loading themes, I do that in window-setup-hook, because that always
> runs whether or not daemonp is non-nil.  Search for window-setup-hook in
> visual.el
> Hope this helps.
> --
> Kaushal Modi

reply via email to

[Prev in Thread] Current Thread [Next in Thread]