From e9b9804f04414ce104c9f83797072fc3afb5d290 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Fri, 24 May 2024 21:37:23 -0700 Subject: [PATCH] Fix japanese fonts --- init.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/init.el b/init.el index 11b5590..1212535 100644 --- a/init.el +++ b/init.el @@ -113,9 +113,9 @@ ;; Set fonts (add-to-list 'default-frame-alist '(font . "FiraCode Nerd Font Mono-12")) - (set-fontset-font "fontset-default" - 'japanese-jisx0208 - '("IPAGothic" . "iso10646-1")) + (add-hook 'server-after-make-frame-hook + (lambda () + (set-fontset-font t 'japanese-jisx0208 "IPAGothic"))) ;; Enable color in compilation buffers (add-hook 'compilation-filter-hook 'ansi-color-compilation-filter) @@ -1433,7 +1433,6 @@ buffers `helpful--sym' to `my/helpful-symbol-history'." :config (add-to-list 'corfu-margin-formatters #'kind-icon-margin-formatter)) - ;; modeline (doom-modeline) (use-package doom-modeline :init