core-spacemacs: fix daemon font size (#15295)

Co-authored-by: "ruquan.chen" <ccruquan@gmail.com>
This commit is contained in:
Lucius Hu 2022-01-28 22:18:22 -05:00 committed by GitHub
parent 4526486893
commit 42dc30e33c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,7 +138,10 @@ the final step of executing code in `emacs-startup-hook'.")
;; believe me? Go ahead, try it. After you'll have notice that this was true, ;; believe me? Go ahead, try it. After you'll have notice that this was true,
;; increase the counter bellow so next people will give it more confidence. ;; increase the counter bellow so next people will give it more confidence.
;; Counter = 1 ;; Counter = 1
(spacemacs-buffer/message "Setting the font...") (let ((init-file-debug)) ;; without this font size is ignored in daemon
(when (daemonp)
(setq init-file-debug t))
(spacemacs-buffer/message "Setting the font..."))
(unless (spacemacs/set-default-font dotspacemacs-default-font) (unless (spacemacs/set-default-font dotspacemacs-default-font)
(spacemacs-buffer/warning (spacemacs-buffer/warning
"Cannot find any of the specified fonts (%s)! Font settings may not be correct." "Cannot find any of the specified fonts (%s)! Font settings may not be correct."