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
1 changed files with 4 additions and 1 deletions

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,
;; increase the counter bellow so next people will give it more confidence.
;; 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)
(spacemacs-buffer/warning
"Cannot find any of the specified fonts (%s)! Font settings may not be correct."