|
From: | Phil Sainty |
Subject: | Re: Help using the right hook for loading theme on emacs daemon GUI |
Date: | Fri, 18 Jan 2019 16:47:34 +1300 |
User-agent: | Orcon Webmail |
On 2019-01-18 04:44, Kaushal Modi wrote:
;; Load the theme ONLY after the frame has finished loading (needed especially;; when running emacs in daemon mode);; https://github.com/Malabarba/smart-mode-line/issues/84#issuecomment-46429893;; ;; `after-make-frame-functions' hook is not run in no-window mode ;; (add-hook 'after-make-frame-functions (lambda (&rest frame) ;; (funcall default-theme-fn)))
I'm not sure whether it's relevant in this case, but in general you don't want to ignore the FRAME argument with after-make-frame-functions, otherwise you don't know which frame is selected when your code is evaluated. e.g.: (lambda (frame) (with-selected-frame frame ...))
[Prev in Thread] | Current Thread | [Next in Thread] |