emacs-devel
[Top][All Lists]
Advanced

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

Re: Help using the right hook for loading theme on emacs daemon GUI


From: Phil Sainty
Subject: Re: Help using the right hook for loading theme on emacs daemon GUI
Date: Thu, 24 Jan 2019 16:47:59 +1300
User-agent: Orcon Webmail

On 2019-01-23 09:27, Kaushal Modi wrote:
For the reason in that comment, after-make-frame-functions did not
work for me, so I had stopped using it.

Where the comment in question was:

;; `after-make-frame-functions' hook is not run in no-window mode

Which is a bit confusing to me.

If you are creating a new frame with the -nw option for an existing
Emacs instance then `after-make-frame-functions' definitely runs.
(Certainly in 26.1, where I just tested it.)

It's true that just running 'emacs -nw' does not run that hook for the
initial frame -- but then neither does it run for the initial frame
when you start 'emacs' in GUI mode, so the "no-window mode" part does
not seem relevant.

It's quite common to add a function to `after-make-frame-functions'
and to also call that function directly during init (or in
`after-init-hook' or some such) to process the initial frame.


-Phil




reply via email to

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