Created
April 9, 2022 09:50
-
-
Save gongo/67550059d8833e742272e6d0de4a3c0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(leaf font | |
:global-minor-mode global-font-lock-mode | |
:config | |
(leaf spec | |
:when (memq window-system '(mac ns)) | |
:defun my-ja-font-setter my-ascii-font-setter my-font-config | |
:custom | |
'( | |
(face-font-rescale-alist . '((".*Ricty.*" . 1.0) | |
(".*Inconsolata.*" . 1.0))) | |
) | |
:config | |
;; | |
;; refs: https://takaxp.github.io/init.html | |
;; | |
(defun my-ja-font-setter (spec) | |
(set-fontset-font nil 'japanese-jisx0208 spec) | |
(set-fontset-font nil 'katakana-jisx0201 spec) | |
(set-fontset-font nil 'japanese-jisx0212 spec) | |
(set-fontset-font nil '(128 . 591) spec) | |
(set-fontset-font nil '(880 . 1023) spec) | |
(set-fontset-font nil 'mule-unicode-0100-24ff spec)) | |
(defun my-ascii-font-setter (spec) | |
(set-fontset-font nil 'ascii spec)) | |
(defun my-font-config (font-size ascii-font ja-font) | |
(my-ascii-font-setter (font-spec :family ascii-font :size font-size)) | |
(my-ja-font-setter (font-spec :family ja-font :size font-size))) | |
(my-font-config 22 "Ricty" "Ricty")) | |
) | |
(leaf corfu | |
:ensure t | |
:global-minor-mode t | |
:custom ((corfu-cycle . t) | |
(corfu-auto . t)) | |
:init | |
(corfu-global-mode) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment