From 9bfda96217c28cb3d7fa8c489ac6442ec2c7e54b Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 21 Sep 2024 08:24:17 -0700 Subject: add ef-theme back and fix fonts --- config/init-ui.el | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) (limited to 'config/init-ui.el') diff --git a/config/init-ui.el b/config/init-ui.el index e67251c..b12c84b 100644 --- a/config/init-ui.el +++ b/config/init-ui.el @@ -51,11 +51,32 @@ ("Europe/London" "London") ("Europe/Paris" "Paris"))) -;; ;; use various monaspace fonts -;; ;; https://monaspace.githubnext.com -(set-face-attribute 'default nil - :font "Monaspace Argon" - :height 160) +(use-package ef-themes + :ensure t + :init + (add-hook 'ef-themes-post-load-hook #'my-ef-themes-mode-line) + :preface + (defun my-ef-themes-mode-line () + "Tweak the style of the mode lines." + (ef-themes-with-colors + (custom-set-faces + `(mode-line ((,c :background ,bg-active :foreground ,fg-main :box (:line-width 1 :color ,fg-dim)))) + `(mode-line-inactive ((,c :box (:line-width 1 :color ,bg-active))))))) + :custom + (ef-themes-region '(intense no-extend neutral)) + (ef-themes-disable-other-themes t) + (ef-themes-to-toggle '(ef-melissa-light ef-owl)) + :init + (ef-themes-select 'ef-owl)) + +;; | 数字 | アルファベット | 日本語 | 絵文字 | +;; | 0123 | abcdefghijklmn | あいう | 🍎🍎🍎 | +(set-face-attribute 'default nil :family "Source Code Pro" :height 150) + +(set-fontset-font t 'japanese-jisx0208 '("Osaka")) +(set-fontset-font t 'symbol '("Apple Color Emoji")) +(setq face-font-rescale-alist '(("Osaka" . 1.2) + ("Apple Color Emoji" . 0.8))) (provide 'init-ui) ;;; init-ui.el ends here -- cgit 1.4.1