Commit a89ea0b270ab

Vincent Demeester <vincent@sbr.pm>
2020-04-17 14:45:29
emacs: early font setup ๐Ÿ‘ผ
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent f9479eb
Changed files (2)
tools/emacs/config/config-appearance.el
@@ -5,6 +5,7 @@
 ;; TypeFaceConfiguration
 (use-package emacs
   :bind ("C-c f r" . mu-reset-fonts)
+  :commands (mu-reset-fonts)
   :config
 ;;; ยฏ\_(ใƒ„)_/ยฏ
   (defconst font-height 130
tools/emacs/early-init.el
@@ -24,6 +24,18 @@
 (setq file-name-handler-alist nil)
 ;; -FileNameHandler
 
+;;-EarlyFontSetup
+(defconst font-height 130
+  "Default font-height to use.")
+;; Middle/Near East: ืฉืœื•ื, ุงู„ุณู‘ู„ุงู… ุนู„ูŠูƒู…
+(when (member "Noto Sans Arabic" (font-family-list))
+  (set-fontset-font t 'arabic "Noto Sans Arabic"))
+(when (member "Noto Sans Hebrew" (font-family-list))
+  (set-fontset-font t 'arabic "Noto Sans Hebrew"))
+;; Africa: แˆ แˆ‹แˆ
+(when (member "Noto Sans Ethiopic" (font-family-list))
+  (set-fontset-font t 'ethiopic "Noto Sans Ethiopic"))
+
 ;; Default font is Ubuntu Mono (and Ubuntu Sans for variable-pitch)
 ;; If Ubuntu Mono or Ubuntu Sans are not available, use the default Emacs face
 (when (member "Ubuntu Mono" (font-family-list))
@@ -40,6 +52,7 @@
 ;; in this file and can conflict with later config (particularly where the
 ;; cursor color is concerned).
 (advice-add #'x-apply-session-resources :override #'ignore)
+;;+EarlyFontSetup
 
 ;; AfterInitHook
 (add-hook 'after-init-hook