From 65b1417a7d1443ea83595529389634fe3bbf0280 Mon Sep 17 00:00:00 2001 From: noa@gaiwan.org Date: Thu, 13 Jun 2024 08:28:08 +0000 Subject: Update indentation for cjk charset configuration --- emacs/init.el | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/emacs/init.el b/emacs/init.el index 71cfd29..61aed99 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -932,15 +932,8 @@ and when JID is not in `jabber-activity-banned'." '(variable-pitch ((t (:family "SN Pro" :height 110)))) ) ;; For some frustrating reason, emacs does not respect fontconfig font settings. What this means in practice is that emacs by default draws cjk characters with the korean variant. Luckily emacs has its own obscure and poorly documented way of doing things, so i can iterate over the relevant charsets and set the font specifically for those characters. -(dolist ( - charset '( - han - ;; symbol - cjk-misc)) - (set-fontset-font t charset ( - font-spec :family "Noto Sans CJK SC" - )) -) +(dolist (charset '(han cjk-misc)) + (set-fontset-font t charset (font-spec :family "Noto Sans CJK SC"))) ;; Describe a key based on a string like "C-SPC" (defun describe-key-shortcut (shortcut) -- cgit 1.4.1-2-gfad0