emacs.d

My emacs configuration, done in a literate programming fashion using org-mode

git clone git://git.shimmy1996.com/emacs.d.git
commit cb67161d4fd7c033d1159e1bafdf6771e20ff9ea
parent 6ff4170ee1a20f8bd7f898267678b9388a10de23
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Tue, 19 Jun 2018 23:12:23 -0500

Revamp font settings.

Diffstat:
MREADME.org | 23++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/README.org b/README.org
@@ -189,25 +189,26 @@ Fills up gap in the border when tiling emacs to half-screen.
 #+END_SRC
 
 *** Default Font
-Use Source Code Pro/Iosevka as the default font.
-
-**** DISABLED Source Code Pro
-#+BEGIN_SRC emacs-lisp
-  (setq default-frame-alist '((font . "Source Code Pro-12")))
-#+END_SRC
-
-**** Iosevka
+Use Iosevka as the default font.
 #+BEGIN_SRC emacs-lisp
   (setq default-frame-alist '((font . "Iosevka-13")))
 #+END_SRC
 
 *** DISABLED CJK Font fallback
-Fallback for CJK fonts.
+Fallback for CJK fonts. Disabled for now as the solution doesn't seem
+to work for =emacsclient=, besides this makes CJK characters much
+taller than Latin characters, which is really ugly.
 #+BEGIN_SRC emacs-lisp
-  (set-fontset-font "fontset-default" nil
-                    (font-spec :size 12 :name "Noto Sans Mono CJK SC"))
+  (set-fontset-font "fontset-default" 'iso-8859-3
+                    (font-spec :family "Iosevka" :size 12))
+  (set-fontset-font "fontset-default"
+                    'han
+                    (font-spec :family "Noto Sans CJK SC") nil 'append)
+  (setq face-font-rescale-alist '(("Noto Sans CJK SC" . 1.1)))
 #+END_SRC
 
+#+RESULTS:
+
 ** Zoom In
 Use mouse wheel to adjust zoom level.
 #+BEGIN_SRC emacs-lisp