From 788b9be5e786d93d315e592fbd8064da54e06d58 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Tue, 19 Nov 2019 21:56:07 +0100 Subject: Improve font setup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Color fonts improve emoji readability IMO. Noto's emoji font does not cover 🗚 nor 🗛 though. While in there, use simplify a version check. --- .emacs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.emacs') diff --git a/.emacs b/.emacs index 2fe65bf..4959256 100644 --- a/.emacs +++ b/.emacs @@ -10,7 +10,7 @@ ;; NB: starting from Emacs 27, package-initialize is automatically ;; called before loading the user's init file, unless ;; package-enable-at-startup is set to nil in the early init file. -(when (version< emacs-version "27") +(when (< emacs-major-version 27) (package-initialize)) (setq custom-file "~/.emacs-custom.el") @@ -312,7 +312,9 @@ (my/froggify))) ;; Font stuff (🤷 🤦) -(set-fontset-font t nil "Symbola") +(set-fontset-font t 'symbol "Symbola" nil 'prepend) +(when (>= emacs-major-version 27) + (set-fontset-font t 'symbol "Noto Color Emoji" nil 'prepend)) (defun my/project-root () (when-let ((project (project-current))) -- cgit v1.2.3