home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit a89ea0b270ab2e954c7061b5c597a6d27926eef4
parent f9479eb558eabd9346480971ea623cfeccd2eba0
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Fri, 17 Apr 2020 14:45:29 +0200

emacs: early font setup 👼

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mtools/emacs/config/config-appearance.el | 1+
Mtools/emacs/early-init.el | 13+++++++++++++
2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/tools/emacs/config/config-appearance.el b/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 diff --git a/tools/emacs/early-init.el b/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