From 92b4f8edb2e26f0e38bf664504d8ea773faffae9 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Fri, 27 Dec 2019 23:37:23 +0100 Subject: Tweak Emacs font configuration --- .emacs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.emacs b/.emacs index 9c4ccaf..e813ab6 100644 --- a/.emacs +++ b/.emacs @@ -329,10 +329,14 @@ (my/unfroggify) (my/froggify))) -;; Font stuff (🤷 🤦) -(set-fontset-font t 'symbol "Symbola" nil 'prepend) +;; Font stuff 🤷🤦. Emacs comes with sensible defaults (e.g. the +;; default fontset includes Symbola for various subgroups of the +;; "symbol" script), but no color font by default. (when (>= emacs-major-version 27) - (set-fontset-font t 'symbol "Noto Color Emoji" nil 'prepend)) + ;; Prefer a color font for emojis. + (set-fontset-font t 'symbol "Noto Color Emoji" nil 'prepend) + ;; Make sure the default font does not get overzealous (⚠⚙). + (setq use-default-font-for-symbols nil)) (defun my/project-root () (when-let ((project (project-current))) -- cgit v1.2.3